From fe417601a663653485d8f1ad765510c7108b947b Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Jul 2024 15:49:12 +0200 Subject: [PATCH] ADD /report --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 30a3078..3bc0918 100644 --- a/main.py +++ b/main.py @@ -351,7 +351,7 @@ async def reporting(get: CL.CL_REPORTING,api_key: APIKey = Depends(auth.get_api_ reportingdate = datetime.now() reportingdate = reportingdate.strftime("%Y-%m-%d %H:%M:%S") print(reportingdate) - database(f"INSERT INTO `Kunden.services.reporting` (username,service_ID,customer_ID,reportingdate,lastaccess) VALUES ('{get.username}','{service_ID}','{customer_ID}',{reportingdate}',{get.lastaccess}'","","") + database(f"INSERT INTO `services.reporting` (username,service_ID,customer_ID,reportingdate,lastaccess) VALUES ('{get.username}','{service_ID}','{customer_ID}',{reportingdate}',{get.lastaccess}'","Kunden","") print(f"{service_ID} - {customer_ID}")