From 9f0d72b9d14a57479f5f6e6d15314549b47a7c2f Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 30 Mar 2024 09:58:06 +0100 Subject: 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 --- lib/Travelynx/Helper/HAFAS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- cgit v1.2.3