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

Show natural opg journeys #4218

Merged
merged 9 commits into from
Feb 19, 2024
Merged

Show natural opg journeys #4218

merged 9 commits into from
Feb 19, 2024

Conversation

azime
Copy link
Contributor

@azime azime commented Feb 16, 2024

@azime azime requested review from kadhikari, xlqian and pbench February 16, 2024 08:59
@@ -56,6 +56,10 @@ def __repr__(self):
return "{}-{}-{}".format(self.instance_name, self.s3_object.key, self.s3_object.e_tag)


def has_applicable_scenario(api_request):
return True if api_request.get("olympic_site_params") else False
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 True if api_request.get("olympic_site_params") else False
return bool(api_request.get("olympic_site_params"))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Comment on lines 111 to 115
return (
query_show_natural_opg_journeys
if query_show_natural_opg_journeys is not None
else conf_additional_parameters.get("show_natural_opg_journeys", False)
)
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 (
query_show_natural_opg_journeys
if query_show_natural_opg_journeys is not None
else conf_additional_parameters.get("show_natural_opg_journeys", False)
)
return query_show_natural_opg_journeys or conf_additional_parameters.get("show_natural_opg_journeys", False)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link

@azime azime merged commit 49f0ba9 into dev Feb 19, 2024
9 checks passed
@azime azime deleted the show_natural_opg_journeys branch February 19, 2024 08:09
@azime azime restored the show_natural_opg_journeys branch March 1, 2024 14:01
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.

3 participants