Remove API key From Console

master
Sebastian Serfling 2023-10-12 13:05:06 +02:00
parent 2a743a0a93
commit 3a80d3a87c
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ async def gethostname(get: CL.CL_GET_HOSTNAME,api_key: APIKey = Depends(auth.get
@app.post("/info/sethost")
async def sethostname(get: CL.CL_SET_HOSTNAME,api_key: APIKey = Depends(auth.get_api_key)):
result = database(f"INSERT INTO `{get.dbname}`.hardware (hostname,ipadresse,user,ram,hddused,hddfree,hddtotal) VALUES ({get.hostname},{get.ipadresse},{get.user},{get.ram}),{get.hddused},{get.hddfree},{get.hddtotal})","","")
result = database(f"INSERT INTO `{get.dbname}`.hardware (hostname,ipadresse,user,ram,hddused,hddfree,hddtotal) VALUES ('{get.hostname}','{get.ipadresse}','{get.user}','{get.ram}','{get.hddused}','{get.hddfree}','{get.hddtotal}')","","")
if not result:
return False
else: