From 8b5fc5da52f156c9a0490d160d74a5a44c1dc5df Mon Sep 17 00:00:00 2001 From: Joel Lappalainen Date: Mon, 24 May 2021 14:10:50 +0300 Subject: [PATCH] Add a new 5 character route postfix to parse out --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 69b1697..0b7b26f 100644 --- a/utils.py +++ b/utils.py @@ -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]