mirror of
https://github.com/derf/travelynx
synced 2024-12-04 10:19:09 +00:00
connections: do not show cancelled trains twice
This commit is contained in:
parent
68ff417f0c
commit
2638dd36fb
1 changed files with 9 additions and 0 deletions
|
@ -276,6 +276,15 @@ sub get_connecting_trains_p {
|
|||
eval {
|
||||
for my $iris_train (@iris_trains) {
|
||||
if ( $iris_train->[0]->departure_is_cancelled ) {
|
||||
for my $hafas_train (@all_hafas_trains) {
|
||||
if ( $hafas_train->number
|
||||
and $hafas_train->number
|
||||
== $iris_train->[0]->train_no )
|
||||
{
|
||||
$hafas_train->{iris_seen} = 1;
|
||||
next;
|
||||
}
|
||||
}
|
||||
next;
|
||||
}
|
||||
for my $hafas_train (@all_hafas_trains) {
|
||||
|
|
Loading…
Reference in a new issue