-
Notifications
You must be signed in to change notification settings - Fork 28
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
[tech] Fix opening/closing times on frequency lines #920
Conversation
60afde7
to
3e4762e
Compare
8228bb0
to
3d598e0
Compare
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.
Covered by tests, looks good to me. Here is some propositions, maybe not everything should be used, not sure of the maintenability of some of what I propose.
src/model.rs
Outdated
if let Some(vj_idx) = c.vehicle_journeys.get_idx(&frequency.vehicle_journey_id) | ||
{ | ||
return Some((vj_idx, frequency)); | ||
} | ||
None |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
src/model.rs
Outdated
c.vehicle_journeys[vj_idx] | ||
.stop_times | ||
.first() | ||
.map(|st| st.departure_time), | ||
c.vehicle_journeys[vj_idx] | ||
.stop_times | ||
.last() | ||
.map(|st| st.arrival_time), |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
No description provided.