ADD /report
parent
108e378343
commit
0525a666cf
4
main.py
4
main.py
|
|
@ -351,8 +351,8 @@ 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 `services.reporting` (username,service_ID,customer_ID,reportingdate,lastaccess) VALUES ('{get.username}','{service_ID}','{customer_ID}',{reportingdate}',{get.lastaccess}'","Kunden","")
|
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"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}")
|
print(f"{service_ID} - {customer_ID}")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue