updated function to get the list
This commit is contained in:
4
main.py
4
main.py
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user