Skip to content

Commit

Permalink
Merge pull request #29 from HSLdevcom/DT-6190
Browse files Browse the repository at this point in the history
Do not return None as a value for the shortname
  • Loading branch information
optionsome authored May 21, 2024
2 parents e3bec85 + 4d994ef commit c0ba9a6
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 @@ -14,7 +14,7 @@ def parse_short_name(feed, trip_id, route_id, otp_data):
feed_scoped_id = feed + ":" + route_id
if feed_scoped_id not in otp_data:
return ""
return otp_data[feed + ":" + route_id]["shortName"]
return otp_data[feed_scoped_id]["shortName"] or ""

def parse_color(feed, trip_id, route_id, otp_data):
if otp_data == None:
Expand Down

0 comments on commit c0ba9a6

Please sign in to comment.