diff --git a/fleet_management/traccar_api.py b/fleet_management/traccar_api.py index 3814d33..b03139d 100644 --- a/fleet_management/traccar_api.py +++ b/fleet_management/traccar_api.py @@ -79,7 +79,7 @@ def get_trips_for_device(device_id, start=None, end=None): # get all trips from traccar server try: trips_response = requests.get( - f"http://{ts.traccar_server}:{ts.traccar_port}/api/reports/trips", + f"http://{ts.traccar_server}:{ts.traccar_port}/api/reports/trip", cookies=traccar_auth(ts), params={ 'deviceId': device_id,