summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-10 19:52:49 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-10 19:52:49 +0200
commitcecf3491d5dae134f28571911c779f81b64f32ff (patch)
tree1056f27dab84bfe1b628a3aa20cd8f2b3f8577df /lib
parente6ba4b0e3b99d7bc263fe53283fe69ef557b42eb (diff)
work: only request carriage formation for DB backends
Diffstat (limited to 'lib')
-rw-r--r--lib/Travelynx/Command/work.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 42b2bc8..042fb43 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -81,7 +81,8 @@ sub run {
dep_eva => $dep,
arr_eva => $arr
);
- if ( $journey->class <= 16
+ if ( $entry->{backend_id} <= 1
+ and $journey->class <= 16
and $found_dep->rt_dep->epoch > $now->epoch )
{
$self->app->add_wagonorder(
@@ -106,7 +107,8 @@ sub run {
dep_eva => $dep,
arr_eva => $arr
);
- if ( $journey->class <= 16
+ if ( $entry->{backend_id} <= 1
+ and $journey->class <= 16
and $found_arr->rt_arr->epoch - $now->epoch < 600 )
{
$self->app->add_wagonorder(