From 695c5afee8a51e16aed53567ee76dc1e81bf9d2f Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Sat, 18 Mar 2023 19:23:04 +0100 Subject: [PATCH] wip --- src/server/BreCal/impl/verify.py | 10 ++++++++-- src/server/requirements.txt | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) 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