2 parents e3bec85 + 4d994ef commit c0ba9a6Copy full SHA for c0ba9a6
1 file changed
utils.py
@@ -14,7 +14,7 @@ def parse_short_name(feed, trip_id, route_id, otp_data):
14
feed_scoped_id = feed + ":" + route_id
15
if feed_scoped_id not in otp_data:
16
return ""
17
- return otp_data[feed + ":" + route_id]["shortName"]
+ return otp_data[feed_scoped_id]["shortName"] or ""
18
19
def parse_color(feed, trip_id, route_id, otp_data):
20
if otp_data == None:
0 commit comments