Skip to content
This repository was archived by the owner on Jun 29, 2023. It is now read-only.

Commit e2576f7

Browse files
committed
convert old style IDs to new style IDs
closes #18
1 parent 06cbca6 commit e2576f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mvg_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def get_locations(query):
187187
188188
"""
189189
try:
190-
query = int(query) # converts station ids to int
190+
query = f"{id_prefix}{int(query)}" # converts old style station id to new style station id
191191
except(ValueError): # happens if it is a station name
192192
url = query_url_name.format(name=query)
193193
else: # happens if it is a station id

0 commit comments

Comments
 (0)