diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-11-12 18:37:00 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-11-12 18:37:00 +0100 |
commit | 90d2e0357cb41020dfdec3a594956d14c3f276af (patch) | |
tree | 591159f22b00e1e324533118d787ae751d2cde62 /lib | |
parent | 8bb803366a5fc4d781ede2e5c3de33bb7a2a5a60 (diff) |
show expected load of suggested connections, if available
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 8d16811..1517a7b 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -280,6 +280,11 @@ sub get_connecting_trains_p { and $hafas_train->number == $iris_train->[0]->train_no ) { + if ( $hafas_train->load + and $hafas_train->load->{SECOND} ) + { + $iris_train->[3] = $hafas_train->load; + } for my $stop ( $hafas_train->route ) { if ( $stop->{name} and $stop->{name} eq $iris_train->[1] |