work: fix HAFAS arrival wagonorder/stationinfo request logic

This commit is contained in:
Birte Kristina Friesel 2024-05-30 11:54:21 +02:00
parent 918ed6ab1f
commit 5a72c60307
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -87,7 +87,7 @@ sub run {
arr_eva => $arr arr_eva => $arr
); );
if ( $journey->class <= 16 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, $self->app->add_wagonorder( $uid, 0, $train_id,
$found_dep->sched_dep, $journey->number ); $found_dep->sched_dep, $journey->number );