diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-09-19 20:15:19 +0200 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-09-19 20:15:19 +0200 |
| commit | 52c8c8f4195039702cb9ca43b0a9289b64652910 (patch) | |
| tree | ea89ff74129d0052ebf02a1dc5f2876676e5ebaa /lib | |
| parent | 13ad573b257080756fd85d7bd8a5d9739ba57023 (diff) | |
Location: populate is_additional from stop remark
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Travel/Status/DE/DBRIS/Location.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/DBRIS/Location.pm b/lib/Travel/Status/DE/DBRIS/Location.pm index 580291f..7d59fc2 100644 --- a/lib/Travel/Status/DE/DBRIS/Location.pm +++ b/lib/Travel/Status/DE/DBRIS/Location.pm @@ -97,6 +97,9 @@ sub new { if ( $message->{type} and $message->{type} eq 'HALT_AUSFALL' ) { $ref->{is_cancelled} = 1; } + elsif ( $message->{text} and $message->{text} eq 'Zusatzhalt' ) { + $ref->{is_additional} = 1; + } push( @{ $ref->{messages} }, $message ); } |
