diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-13 17:28:52 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-13 17:28:52 +0100 |
commit | f6bff01f76526ed18f9a763543db362e8d3fe7fa (patch) | |
tree | 797babacf2d05f5fa27c23028b2cf0aa70e4e8d6 /lib | |
parent | b211e0842acb4b35977bbb13de34d145a56bef4e (diff) |
save wagongroups if available
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Travelynx.pm | 9 |
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', |