diff options
| author | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-09-26 20:26:12 +0200 | 
|---|---|---|
| committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2023-09-26 20:26:12 +0200 | 
| commit | 2638dd36fba1fc3389138906a7436aba311dbe54 (patch) | |
| tree | ee9e16c86c2ee36b5147876ec8ac16f96a52180a | |
| parent | 68ff417f0cfe94d31a9d99064d5d4cb90b5fc4a8 (diff) | |
connections: do not show cancelled trains twice2.3.1
| -rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 9 | 
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) { | 
