ADD /report

master
root 2024-07-29 15:49:12 +02:00
parent 60573fc9ec
commit fe417601a6
1 changed files with 1 additions and 1 deletions

View File

@ -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}")