ADD /report
This commit is contained in:
@@ -343,6 +343,7 @@ async def reporting(get: CL.CL_REPORTING,api_key: APIKey = Depends(auth.get_api_
|
||||
user_check = database(f"SELECT username from users where username = '{get.username}'","Kunden","")
|
||||
if not user_check:
|
||||
print("User not exist")
|
||||
next
|
||||
entry = database(f"SELECT s.customer_ID,s.service_ID from `server` s where s.privat_ipaddress LIKE '%{get.ipaddress}%'","Kunden","")
|
||||
customer_ID = entry[0][0]
|
||||
service_ID = entry[0][1]
|
||||
|
||||
Reference in New Issue
Block a user