From 687acd6ece7fe8b832fb662890d9a3e79b1596e0 Mon Sep 17 00:00:00 2001 From: Sebastian Serfling Date: Thu, 12 Oct 2023 14:43:41 +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 86d1098..b9a0c23 100644 --- a/main.py +++ b/main.py @@ -88,7 +88,7 @@ async def getuser(get: CL.CL_GET_USER,api_key: APIKey = Depends(auth.get_api_key @app.post("/info/gethost") async def gethostname(get: CL.CL_GET_HOST,api_key: APIKey = Depends(auth.get_api_key)): - result = database(f"SELECT hostname FROM `hardware` where `hostname` = '{get.hostname}'",f"{get.dbname}","") + result = database(f"SELECT id FROM `hardware` where `hostname` = '{get.hostname}'",f"{get.dbname}","") if not result: return False else: