summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2023-09-26 20:26:12 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2023-09-26 20:26:12 +0200
commit2638dd36fba1fc3389138906a7436aba311dbe54 (patch)
treeee9e16c86c2ee36b5147876ec8ac16f96a52180a /lib/Travelynx/Controller
parent68ff417f0cfe94d31a9d99064d5d4cb90b5fc4a8 (diff)
connections: do not show cancelled trains twice2.3.1
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index 35e8222..b83eea5 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -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) {