summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm2
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 0d88b40..8f868a9 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -956,7 +956,7 @@ sub train_details {
my $linetype = 'bahn';
$self->hafas->get_route_timestamps_p(
- train_no => "${train_type} $train_no" )->then(
+ train_req => "${train_type} $train_no" )->then(
sub {
my ( $route_ts, $route_info, $trainsearch ) = @_;
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index bfc8ed4..8c11412 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -207,7 +207,7 @@ sub trainsearch_p {
my $promise = Mojo::Promise->new;
$self->get_json_p( $self->{realtime_cache},
- "${base}&date=$opt{date_yy}&trainname=$opt{train_no}" )->then(
+ "${base}&date=$opt{date_yy}&trainname=$opt{train_req}" )->then(
sub {
my ($trainsearch) = @_;
@@ -285,7 +285,7 @@ sub get_route_timestamps_p {
if ( $opt{train} ) {
$opt{date_yy} = $opt{train}->start->strftime('%d.%m.%y');
$opt{date_yyyy} = $opt{train}->start->strftime('%d.%m.%Y');
- $opt{train_no} = $opt{train}->type . ' ' . $opt{train}->train_no;
+ $opt{train_req} = $opt{train}->type . ' ' . $opt{train}->train_no;
$opt{train_origin} = $opt{train}->origin;
}
else {