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

[tech] Fix opening/closing times on frequency lines #920

Merged
merged 10 commits into from
Sep 22, 2023

Conversation

ArnaudOggy
Copy link
Contributor

@ArnaudOggy ArnaudOggy commented Sep 20, 2023

No description provided.

woshilapin
woshilapin previously approved these changes Sep 21, 2023
Copy link
Contributor

@woshilapin woshilapin left a 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
Comment on lines 644 to 648
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.

src/model.rs Outdated
Comment on lines 652 to 659
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.

@ArnaudOggy ArnaudOggy marked this pull request as ready for review September 21, 2023 14:22
@ArnaudOggy ArnaudOggy merged commit c2f3a3f into master Sep 22, 2023
12 checks passed
@ArnaudOggy ArnaudOggy deleted the fix_frequency_line_opening branch September 22, 2023 07:56
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.

None yet

2 participants