From 41cc5f3c254ecfd328a5bcab9ff5eba2023527a8 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 2 Jun 2024 11:47:19 +0200 Subject: work: check arr on arr, not on dep --- 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 2ef83b0..8ae918e 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 $found_dep->rt_arr->epoch - $now->epoch < 600 ) + and $found_arr->rt_arr->epoch - $now->epoch < 600 ) { $self->app->add_wagonorder( $uid, 0, $train_id, $found_dep->sched_dep, $journey->number ); -- cgit v1.2.3