ADD /report

master
root 2024-07-29 15:39:56 +02:00
parent 81faac9d59
commit 40da79bc59
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ async def reporting(get: CL.CL_REPORTING,api_key: APIKey = Depends(auth.get_api_
reportingdate = datetime.now() reportingdate = datetime.now()
reportingdate = reportingdate.strftime("%Y-%m-%d %H:%M:%S") reportingdate = reportingdate.strftime("%Y-%m-%d %H:%M:%S")
print(reportingdate) 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 `Kunden.services.reporting` (username,service_ID,customer_ID,reportingdate,lastaccess) VALUES ('{get.username}','{service_ID}','{customer_ID}',{reportingdate}',{get.lastaccess}'","","")
print(f"{service_ID} - {customer_ID}") print(f"{service_ID} - {customer_ID}")