Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not return None as a value for the shortname #29

Merged
merged 2 commits into from
May 21, 2024
Merged

Conversation

sharhio
Copy link
Contributor

@sharhio sharhio commented May 21, 2024

No description provided.

utils.py Outdated
@@ -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 + ":" + route_id]["shortName"] or ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return otp_data[feed + ":" + route_id]["shortName"] or ""
return otp_data[feed_scoped_id]["shortName"] or ""

@optionsome optionsome merged commit c0ba9a6 into master May 21, 2024
1 check passed
@optionsome optionsome deleted the DT-6190 branch May 21, 2024 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants