diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-05-30 11:54:21 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-05-30 11:54:21 +0200 |
commit | 5a72c603070503420a0fd826a0d39037ad771194 (patch) | |
tree | 1df22a51302d639a013bc6e65372ded3b6f6409d | |
parent | 918ed6ab1f25d0babb2cfa6051ed7b49c58c3834 (diff) |
work: fix HAFAS arrival wagonorder/stationinfo request logic
-rw-r--r-- | lib/Travelynx/Command/work.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |