From 16d570003c7914eec49409319ff6a50e433242b4 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Thu, 12 Oct 2023 14:31:00 +0200 Subject: [PATCH] Remove API key From Console --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7792313..f221a1f 100644 --- a/main.py +++ b/main.py @@ -122,7 +122,7 @@ async def gethost_user(get: CL.CL_GET_HOST_USER,api_key: APIKey = Depends(auth.g async def setlastlogon_user(get: CL.CL_SET_LASTLOGON_USER,api_key: APIKey = Depends(auth.get_api_key)): database(f"INSERT INTO `{get.dbname}`.lastlogon (lastlogon) VALUES ('{get.lastlogon}')","","") lastlogonid = database(f"SELECT id FROM `{get.dbname}`.lastlogon WHERE lastlogon = '{get.lastlogon}'","","") - result = database(f"INSERT INTO `{get.dbname}`.lastlogon_to_user (userID,lastlogonID) VALUES ('{get.userID}','{lastlogonid}')", "", "") + result = database(f"INSERT INTO `{get.dbname}`.lastlogon_to_user (userID,lastlogonID) VALUES ('{get.userID}','{lastlogonid[0][0]}')", "", "") if not result: return False else: