HAFAS: correctly pass lookahead on to backend library

Closes #126

Note that this is more of a hotfix -- the underlying bug is in
Travel::Status::DE::HAFAS
This commit is contained in:
Birte Kristina Friesel 2024-03-30 09:58:06 +01:00
parent 4dbe0ebe3e
commit 9f0d72b9d1
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -90,7 +90,7 @@ sub get_departures_p {
return Travel::Status::DE::HAFAS->new_p( return Travel::Status::DE::HAFAS->new_p(
station => $opt{eva}, station => $opt{eva},
datetime => $when, datetime => $when,
duration => $opt{lookahead}, lookahead => $opt{lookahead} + $opt{lookbehind},
results => 300, results => 300,
cache => $self->{realtime_cache}, cache => $self->{realtime_cache},
promise => 'Mojo::Promise', promise => 'Mojo::Promise',