Skip to content

Commit

Permalink
refactor: Update API resource URLs to use route_id variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Jul 8, 2024
1 parent 9307bb7 commit 0dbbc76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onebusaway/resources/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def retrieve(
if not route_id:
raise ValueError(f"Expected a non-empty value for `route_id` but received {route_id!r}")
return self._get(
f"/api/where/route/routeID.json",
f"/api/where/route/{route_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 0dbbc76

Please sign in to comment.