summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 18:10:37 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 18:10:37 +0100
commit6abf917b75aa307b3fb6086addf428e2b5f5bd41 (patch)
tree5d38cef9d8d9380118996fd19aec8b69f068373b
parenteec9ebe3add5e107729e5000591844a0e1ee9aa2 (diff)
work: fetch arrival wagon order for VBN and ÖBB as well
-rw-r--r--lib/Travelynx/Command/work.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 4473483..5385e9b 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -116,10 +116,15 @@ sub run {
dep_eva => $dep,
arr_eva => $arr
);
- if ( $entry->{backend_id} <= 1
+ if (
+ (
+ $entry->{backend_id} <= 1
+ or $entry->{backend_name} eq 'VRN'
+ or $entry->{backend_name} eq 'ÖBB'
+ )
and $journey->class <= 16
- and $found_arr->rt_arr->epoch - $now->epoch
- < 600 )
+ and $found_arr->arr->epoch - $now->epoch < 600
+ )
{
$self->app->add_wagonorder(
uid => $uid,