Skip to content

Commit

Permalink
refactor: Update API resource URLs to use trip_id variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Jul 13, 2024
1 parent fc93fe5 commit c173e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/onebusaway/resources/trip.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def retrieve(
if not trip_id:
raise ValueError(f"Expected a non-empty value for `trip_id` but received {trip_id!r}")
return self._get(
f"/api/where/trip/tripID.json",
f"/api/where/trip/{trip_id}.json",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down Expand Up @@ -97,7 +97,7 @@ async def retrieve(
if not trip_id:
raise ValueError(f"Expected a non-empty value for `trip_id` but received {trip_id!r}")
return await self._get(
f"/api/where/trip/tripID.json",
f"/api/where/trip/{trip_id}.json",
options=make_request_options(
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
Expand Down

0 comments on commit c173e75

Please sign in to comment.