From 67c7349906ce6c9c93cc45f23046853f3ad07fbc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 24 Mar 2021 22:06:57 +0100 Subject: trainsearch: rename train_no to train_req --- lib/DBInfoscreen/Helper/HAFAS.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/DBInfoscreen/Helper') 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 { -- cgit v1.2.3