From 3a80d3a87c910dcd8403d0c0f536300efc2d37c5 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Thu, 12 Oct 2023 13:05:06 +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 42f91f0..5cd7332 100644 --- a/main.py +++ b/main.py @@ -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: