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 8, 2024
1 parent 6d61f7f commit 7c5fddb
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 @@ -56,7 +56,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 @@ -99,7 +99,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 7c5fddb

Please sign in to comment.