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,

View File

@@ -1 +1 @@
gAAAAABoPvmJa0okDG59jZQf9ZCFZ-qB7cFGQ18uF-duofQnBUYZncvyAG3OBhyB68lQQroIf8xRpHPGYtUy2jFMF1-bhvPkexBECo2BHz0Yun7w_gveksc05I0XKSR-tDvQuS3FKf_3
gAAAAABoPvoeyS-tuW1N-ItemRHlLPfY4XS53ghwhEuE2_LVaaYw3pa8ETldvWFYtW0GZHZbz2cFcZE6-HKXURQ5mKHPnvymaMMc00aLIN2iHPbJKr7LQvbUh-sSb3fxc8zOJZ0W847z

View File

@@ -227,7 +227,7 @@
BoxLayout:
orientation: "vertical"
size_hint_y: None
height: 180 # Adjusted height for the frame
height: 200 # Adjusted height for the frame
spacing: 10
padding: 10
canvas.before: