Unverified Commit 6eb67559 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

dbris suggestions: exclude trains that departed ≥5min ago

parent 239e8671
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1335,6 +1335,7 @@ sub station {

				@suggestions = map { $_->[0] }
				  sort { $a->[1] <=> $b->[1] }
				  grep { $_->[1] >= $now - 300 }
				  map  { [ $_, $_->[0]->dep->epoch ] } @suggestions;
			}
			elsif ($hafas_service) {