db in account

This commit is contained in:
Wolfgang Hottgenroth 2021-07-02 11:02:08 +02:00
parent 44b58bc48c
commit 3dd00d6dcd
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

2
db.py
View File

@ -22,6 +22,8 @@ except KeyError:
DB_HOST = config["database"]["host"]
DB_NAME = config["database"]["name"]
logger.info(f"db config: {DB_USER}, {DB_NAME}, {DB_HOST}, {DB_PASS}")
def databaseOperation(cursor, params):
cursor.execute('SELECT key, value FROM claims_for_user_v where "user" = %s and application = %s',