fix autoscroll
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m26s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 5m26s
This commit is contained in:
parent
a9dc145514
commit
12e4f08a6a
2 changed files with 26 additions and 10 deletions
|
|
@ -82,7 +82,7 @@ pub fn build_timetables(
|
|||
});
|
||||
|
||||
for trip in direction_trips.clone() {
|
||||
if let Some(last) = trip.schedule.last() {
|
||||
if let Some(last) = trip.schedule.iter().max_by_key(|x| x.arrival_time) {
|
||||
if next_id == None && i64::from(seconds_since_midnight) < last.arrival_time {
|
||||
next_id = Some(last.trip_id.clone());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue