ADD /report

This commit is contained in:
2024-07-29 15:50:37 +02:00
parent fe417601a6
commit 108e378343
+1
View File
@@ -352,6 +352,7 @@ async def reporting(get: CL.CL_REPORTING,api_key: APIKey = Depends(auth.get_api_
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","")
print(f"{service_ID} - {customer_ID}")