Skip to content

Commit

Permalink
Merge pull request #30 from HSLdevcom/update-tampere-rules
Browse files Browse the repository at this point in the history
Update tampere route_id parsing
  • Loading branch information
sharhio authored Jun 4, 2024
2 parents c0ba9a6 + 7909a39 commit 1d974ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ def parse_route_id(feed, route_id, trip_id, otp_data):
if feed == "tampere":
if len(route_id) > 6 and route_id[-6:] == "701871":
return route_id[0:-6]
if len(route_id) > 5 and (route_id[-5:] == "47374" or route_id[-5:] == "56920"):
if len(route_id) > 5 and (route_id[-5:] == "47374" or route_id[-5:] == "56920" or route_id[-5:] == "10299"):
return route_id[0:-5]
return route_id[0:-4]
return route_id
Expand Down

0 comments on commit 1d974ff

Please sign in to comment.