Compare commits

...

2 Commits

Author SHA1 Message Date
root 40da79bc59 ADD /report 2024-07-29 15:39:56 +02:00
root 81faac9d59 ADD /report 2024-07-29 15:39:46 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -344,9 +344,9 @@ async def reporting(get: CL.CL_REPORTING,api_key: APIKey = Depends(auth.get_api_
customer_ID = entry[0][0]
service_ID = entry[0][1]
reportingdate = datetime.now()
reportingdate = reportingdate.strftime("yyyy-MM-dd HH:mm:ss")
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 `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}")