From 5a72c603070503420a0fd826a0d39037ad771194 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 30 May 2024 11:54:21 +0200 Subject: work: fix HAFAS arrival wagonorder/stationinfo request logic --- lib/Travelynx/Command/work.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index ac47085..2ef83b0 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -87,7 +87,7 @@ sub run { arr_eva => $arr ); if ( $journey->class <= 16 - and $now->epoch - $found_dep->rt_arr->epoch > 600 ) + and $found_dep->rt_arr->epoch - $now->epoch < 600 ) { $self->app->add_wagonorder( $uid, 0, $train_id, $found_dep->sched_dep, $journey->number ); -- cgit v1.2.3