Skip to content

Commit

Permalink
Merge pull request #18 from HSLdevcom/fix-tampere-routeid-parsing
Browse files Browse the repository at this point in the history
Add a new 5 character route postfix to parse out
  • Loading branch information
vesameskanen authored May 24, 2021
2 parents 2133ab6 + 8b5fc5d commit 59a21fe
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
@@ -1,6 +1,6 @@
def parse_route_id(feed, route_id, trip_id, otp_data):
if feed == "tampere":
if len(route_id) > 5 and route_id[-5:] == "47374":
if len(route_id) > 5 and (route_id[-5:] == "47374" or route_id[-5:] == "56920"):
return route_id[0:-5]
else:
return route_id[0:-4]
Expand Down

0 comments on commit 59a21fe

Please sign in to comment.