mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
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:
parent
4dbe0ebe3e
commit
9f0d72b9d1
1 changed files with 1 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue