ADD /report
parent
60573fc9ec
commit
fe417601a6
2
main.py
2
main.py
|
|
@ -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}")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue