From 059b334a1484ba166b499c270f06dd45250e10ad Mon Sep 17 00:00:00 2001 From: root Date: Mon, 29 Jul 2024 15:53:36 +0200 Subject: [PATCH] ADD /report --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index b98ad94..c3eeb9f 100644 --- a/main.py +++ b/main.py @@ -351,8 +351,8 @@ 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 `services.reporting` (username,service_ID,customer_ID,reportingdate,lastaccess) VALUES ('{get.username}','{service_ID}','{customer_ID}',{reportingdate}','{get.lastaccess}')","Kunden","") - print(f"INSERT INTO `services.reporting` (username,service_ID,customer_ID,reportingdate,lastaccess) VALUES ('{get.username}','{service_ID}','{customer_ID}',{reportingdate}','{get.lastaccess}')","Kunden","") + 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"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}")