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

Refacto filter olympics journeys keep olympics journeys #4139

Merged
merged 3 commits into from
Oct 18, 2023

Conversation

azime
Copy link
Contributor

@azime azime commented Oct 16, 2023

Jira: NAV-2413

Comment on lines 165 to 167
if api_request.get("_keep_olympics_journeys") is None and any(
[olympic_site_params.get("departure_scenario"), olympic_site_params.get("arrival_scenario")]
):
Copy link
Member

Choose a reason for hiding this comment

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

i'm not very sure, but isn't olympic_site_params supposed to be None, if neither from nor to is olympics site?

Suggested change
if api_request.get("_keep_olympics_journeys") is None and any(
[olympic_site_params.get("departure_scenario"), olympic_site_params.get("arrival_scenario")]
):
if api_request.get("_keep_olympics_journeys") is None and 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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

94.1% 94.1% Coverage
0.0% 0.0% Duplication

@azime azime merged commit 4aebd1b into dev Oct 18, 2023
@azime azime deleted the refacto_filter_olympics_journeys_keep_olympics_journeys branch October 18, 2023 08: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.

3 participants