diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-03-24 22:06:57 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-03-24 22:06:57 +0100 |
commit | 67c7349906ce6c9c93cc45f23046853f3ad07fbc (patch) | |
tree | b87985c5a84ebaa1912ea3f7304b348626111dfb | |
parent | a506ff2568a65e0509e1d93d64d86c850ecb8b92 (diff) |
trainsearch: rename train_no to train_req
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 2 | ||||
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 4 |
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 { |