summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-24 22:04:55 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-24 22:04:55 +0100
commita506ff2568a65e0509e1d93d64d86c850ecb8b92 (patch)
tree8f3e09c8bd6d4967e41e8f3f322301f284699c75 /lib
parentbb32333ee20326e9125ff2de0c9c7bbd22ee8bb4 (diff)
train lookup: pass train type to hafas trainsearch.exe
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 0ea6c37..0d88b40 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -955,7 +955,8 @@ sub train_details {
my $linetype = 'bahn';
- $self->hafas->get_route_timestamps_p( train_no => $train_no )->then(
+ $self->hafas->get_route_timestamps_p(
+ train_no => "${train_type} $train_no" )->then(
sub {
my ( $route_ts, $route_info, $trainsearch ) = @_;