Remove API key From Console

master
Sebastian Serfling 2023-10-10 17:19:23 +02:00
parent ab73fa8f5c
commit 0320e9b53d
1 changed files with 2 additions and 2 deletions

View File

@ -151,11 +151,11 @@ async def add_report_user(get: CL.CL_ADD_REPORT_USER,api_key: APIKey = Depends(a
@app.post("/report/getgroup")
async def get_report_group(get: CL.CL_GET_REPORT_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
result = database(f"SELECT Name FROM `{get.dbname}`.`Gruppen` WHERE Name = '{get.group_name}'","","")
result = database(f"SELECT ID FROM `{get.dbname}`.`Gruppen` WHERE Name = '{get.group_name}'","","")
if not result:
return False
else:
return result[0][0]
return result
@app.post("/report/addgroup")
async def get_addreport_group(get: CL.CL_ADD_REPORT_GROUP,api_key: APIKey = Depends(auth.get_api_key)):