diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-24 22:04:55 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-24 22:04:55 +0100 |
commit | a506ff2568a65e0509e1d93d64d86c850ecb8b92 (patch) | |
tree | 8f3e09c8bd6d4967e41e8f3f322301f284699c75 /lib/DBInfoscreen | |
parent | bb32333ee20326e9125ff2de0c9c7bbd22ee8bb4 (diff) |
train lookup: pass train type to hafas trainsearch.exe
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 3 |
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 ) = @_; |