diff --git a/src/server/BreCal/impl/verify.py b/src/server/BreCal/impl/verify.py index 8ec40ca..3e39562 100644 --- a/src/server/BreCal/impl/verify.py +++ b/src/server/BreCal/impl/verify.py @@ -1,11 +1,17 @@ import json import logging +import pydapper +import mysql.connector -def GetVerify(): + +def GetVerify(options): """ """ - + print(options) + sentinel = object() + # with connect("mysql+mysql://root:pydapper@localhost:3307/pydapper", autocommit=True) as commands: + # data = commands.query_single_or_default("SELECT id from `user` WHERE api_key=?", ) # Implement your business logic here # All the parameters are present in the options argument diff --git a/src/server/requirements.txt b/src/server/requirements.txt index df28546..deb29e9 100644 --- a/src/server/requirements.txt +++ b/src/server/requirements.txt @@ -5,4 +5,5 @@ Jinja2==2.11.2 MarkupSafe==1.1.1 marshmallow==3.9.1 webargs==6.1.1 -Werkzeug==1.0.1 \ No newline at end of file +Werkzeug==1.0.1 +pydapper[mysql-connector-python] \ No newline at end of file