Remove API key From Console
parent
09087b314b
commit
7bc018fb71
2
main.py
2
main.py
|
|
@ -151,7 +151,7 @@ async def add_report_user(get: CL.CL_ADD_REPORT_USER,api_key: APIKey = Depends(a
|
||||||
|
|
||||||
@app.post("/report/getgroup")
|
@app.post("/report/getgroup")
|
||||||
async def get_report_group(get: CL.CL_GET_REPORT_GROUP,api_key: APIKey = Depends(auth.get_api_key)):
|
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 '{get.group_name}' FROM `{get.dbname}`.`Gruppen`","","")
|
||||||
if not result:
|
if not result:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue