summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-13 17:28:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-13 17:28:52 +0100
commitf6bff01f76526ed18f9a763543db362e8d3fe7fa (patch)
tree797babacf2d05f5fa27c23028b2cf0aa70e4e8d6 /lib
parentb211e0842acb4b35977bbb13de34d145a56bef4e (diff)
save wagongroups if available
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 57e8e5b..b13c8e2 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -2178,6 +2178,15 @@ sub startup {
}
);
}
+ if ( $group->{fahrzeuggruppebezeichnung}
+ and $group->{fahrzeuggruppebezeichnung}
+ =~ m{ ^ ICE }x )
+ {
+ push(
+ @{ $user_data->{wagongroups} },
+ $group->{fahrzeuggruppebezeichnung}
+ );
+ }
}
$db->update(
'in_transit',