summaryrefslogtreecommitdiff
path: root/lib/Travelynx
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-11-12 18:37:00 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-11-12 18:37:00 +0100
commit90d2e0357cb41020dfdec3a594956d14c3f276af (patch)
tree591159f22b00e1e324533118d787ae751d2cde62 /lib/Travelynx
parent8bb803366a5fc4d781ede2e5c3de33bb7a2a5a60 (diff)
show expected load of suggested connections, if available
Diffstat (limited to 'lib/Travelynx')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm5
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]