Remove API key From Console
parent
ab73fa8f5c
commit
0320e9b53d
4
main.py
4
main.py
|
|
@ -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)):
|
||||
|
|
|
|||
Loading…
Reference in New Issue