Remove API key From Console

master
Sebastian Serfling 2023-10-10 17:15:46 +02:00
parent 7bc018fb71
commit 6c9abf4067
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ 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 '{get.group_name}' FROM `{get.dbname}`.`Gruppen`","","")
result = database(f"SELECT Name FROM `{get.dbname}`.`Gruppen` WHERE Name = '{get.group_name}","","")
if not result:
return False
else: