ADD /report

master
root 2024-07-29 15:31:59 +02:00
parent bb80ce2b03
commit 079d31710b
1 changed files with 3 additions and 1 deletions

View File

@ -341,7 +341,9 @@ async def reporting(get: CL.CL_REPORTING,api_key: APIKey = Depends(auth.get_api_
print(f"{get.lastaccess}")
print(f"{get.ipaddress}")
entry = database(f"SELECT s.customer_ID,s.service_ID from `server` s where s.privat_ipaddress LIKE '%{get.ipaddress}%'","Kunden","")
print(entry[0])
customer_ID = entry[0][0]
service_ID = entry[0][1]
print(f"{service_ID} - {customer_ID}")
## Startet den API-Server