updated function to get the list

This commit is contained in:
2025-06-03 16:36:57 +03:00
parent 57bc5c4f81
commit 2eaafedf5b
3 changed files with 5 additions and 3 deletions

View File

@@ -314,7 +314,9 @@ class GetTripFromServer(Screen): # Renamed from HomeScreen
to_time = f"{end_date}T{end_hour}:59:59Z"
# Prepare request for /reports/route
url = f"{server_url}/reports/route"
url = f"{server_url}/reports/route" # If server_url ends with /api
# OR
url = f"{server_url}/api/reports/route" # If server_url does NOT end with /api
headers = {"Authorization": f"Bearer {token}", "Accept": "application/json"}
params = {
"deviceId": device_id,