-
Notifications
You must be signed in to change notification settings - Fork 128
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
[Jormungandr] [Ridesharing]: Add two params while calling OuestGo #3996
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clearly specified anywhere that OuestGo garanties that pickup=from
and dropoff=to
.
Same goes for the TZ of mindate
and maxdate
.
If @wassimbenaissa (or @stifoon) is OK with those, code looks OK to me (just comments/naming).
@@ -62,6 +62,8 @@ | |||
WEEK_DAYS_MAPPING = ("monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday") | |||
COVERAGE_ANY_BETA = "any-beta" | |||
BEST_BOARDING_POSITION_KEY = "{}-{}" | |||
ONE_DAY = 86400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More pythonic: You can probably use datetime.timedelta(days=1).total_seconds()
instead of 86400
.
source/jormungandr/jormungandr/scenarios/ridesharing/ouestgo.py
Outdated
Show resolved
Hide resolved
source/jormungandr/jormungandr/scenarios/ridesharing/ouestgo.py
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Two more parameters added while calling OuestGo
Departure origin and pickup point is the same.
Drop off and arrival point is the same.
For more details: https://navitia.atlassian.net/browse/NAV-2006