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,
|
||||
|
||||
@@ -1 +1 @@
|
||||
gAAAAABoPvmJa0okDG59jZQf9ZCFZ-qB7cFGQ18uF-duofQnBUYZncvyAG3OBhyB68lQQroIf8xRpHPGYtUy2jFMF1-bhvPkexBECo2BHz0Yun7w_gveksc05I0XKSR-tDvQuS3FKf_3
|
||||
gAAAAABoPvoeyS-tuW1N-ItemRHlLPfY4XS53ghwhEuE2_LVaaYw3pa8ETldvWFYtW0GZHZbz2cFcZE6-HKXURQ5mKHPnvymaMMc00aLIN2iHPbJKr7LQvbUh-sSb3fxc8zOJZ0W847z
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user