Skip to content

Commit

Permalink
work: fix HAFAS arrival wagonorder/stationinfo request logic
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed May 30, 2024
1 parent 918ed6a commit 5a72c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Travelynx/Command/work.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 5a72c60

Please sign in to comment.