summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Helper
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-30 09:58:06 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-30 09:58:06 +0100
commit9f0d72b9d14a57479f5f6e6d15314549b47a7c2f (patch)
tree22f32637ca18e6209118228a6e6b3a075bedfe6a /lib/Travelynx/Helper
parent4dbe0ebe3e334a8a31d6da6752384d28f1c0cdf7 (diff)
HAFAS: correctly pass lookahead on to backend library2.5.23
Closes #126 Note that this is more of a hotfix -- the underlying bug is in Travel::Status::DE::HAFAS
Diffstat (limited to 'lib/Travelynx/Helper')
-rw-r--r--lib/Travelynx/Helper/HAFAS.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Helper/HAFAS.pm b/lib/Travelynx/Helper/HAFAS.pm
index 5a20515..64f2949 100644
--- a/lib/Travelynx/Helper/HAFAS.pm
+++ b/lib/Travelynx/Helper/HAFAS.pm
@@ -90,7 +90,7 @@ sub get_departures_p {
return Travel::Status::DE::HAFAS->new_p(
station => $opt{eva},
datetime => $when,
- duration => $opt{lookahead},
+ lookahead => $opt{lookahead} + $opt{lookbehind},
results => 300,
cache => $self->{realtime_cache},
promise => 'Mojo::Promise',