From e671c58a47debd3d7a2cbbacf4aef3f72c6ac559 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Wed, 25 Oct 2023 10:47:18 +0200 Subject: [PATCH] Remove API key From Console --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c6461e7..4588403 100644 --- a/main.py +++ b/main.py @@ -117,7 +117,7 @@ async def getdatabase(get: CL.CL_GET_DATABASE,api_key: APIKey = Depends(auth.get async def sethost(get: CL.CL_SET_HOST,api_key: APIKey = Depends(auth.get_api_key)): database(f"INSERT INTO `{get.dbname}`.Clients (`Host-Name`,Username,`IP-Adresse`,`Windows-Version`,`CPU-Name`,`Prozessor-Anzahl`,RAM,Speichergesamt,Speicherfrei,Speicherbelegt) VALUES ('{get.hostname}','{get.user}','{get.ipadresse}','{get.winver}','{get.cpuname}','{get.cores}','{get.ram}','{get.hddtotal}','{get.hddfree}','{get.hddused}')","","") result = database( - f"SELECT id FROM `{get.dbname}`.Clients WHERE hostname = '{get.hostname}')", + f"SELECT id FROM `{get.dbname}`.Clients WHERE `Host-Name` = '{get.hostname}')", "", "") if not result: return False