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

2nd iteration on GTFS adaptation #961

Merged
merged 8 commits into from
Oct 7, 2024

Conversation

ArnaudOggy
Copy link
Contributor

@ArnaudOggy ArnaudOggy commented Oct 2, 2024

@ArnaudOggy ArnaudOggy added the wip label Oct 2, 2024
@ArnaudOggy ArnaudOggy force-pushed the feature/2nd_iteration_on_pickup_drop_off_windows branch 3 times, most recently from d52c4e0 to 09af95a Compare October 4, 2024 13:38
@ArnaudOggy ArnaudOggy removed the wip label Oct 4, 2024
@ArnaudOggy ArnaudOggy marked this pull request as ready for review October 4, 2024 14:04
@datanel datanel force-pushed the feature/2nd_iteration_on_pickup_drop_off_windows branch from 09af95a to 315bbb8 Compare October 7, 2024 08:49
Comment on lines 483 to 489
let booking_rule_id_opt = vj.booking_rule_links.first().and_then(|br_id| {
if st.pickup_type == 2u8 || st.drop_off_type == 2u8 {
Some(br_id.clone())
} else {
None
}
});
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
let booking_rule_id_opt = vj.booking_rule_links.first().and_then(|br_id| {
if st.pickup_type == 2u8 || st.drop_off_type == 2u8 {
Some(br_id.clone())
} else {
None
}
});
let booking_rule_id_opt = vj.booking_rule_links.first().filter(|_| {
st.pickup_type == 2u8 || st.drop_off_type == 2u8
}).cloned();

@datanel datanel merged commit 90985fb into master Oct 7, 2024
13 checks passed
@datanel datanel deleted the feature/2nd_iteration_on_pickup_drop_off_windows branch October 7, 2024 09:17
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.

2 participants