summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-29 18:03:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-29 18:03:26 +0100
commita5e8635aba5012d3cf9b56f82d5e96e9049ce133 (patch)
tree45a32211e287e3a71a9e48e6aca73435b0337583 /lib/Travel/Status/DE
parent053b68dc0439e19fdd35ea2a0eb742fa0ab07c3e (diff)
Journey: fix is_cancelled in station board mode
Diffstat (limited to 'lib/Travel/Status/DE')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm
index b48853b..2bda87e 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -185,9 +185,11 @@ sub new {
if ( $journey->{stbStop} ) {
if ( $hafas->{arrivals} ) {
$ref->{origin} = $ref->{route_end};
+ $ref->{is_cancelled} ||= $journey->{stbStop}{aCncl};
}
else {
$ref->{destination} = $ref->{route_end};
+ $ref->{is_cancelled} ||= $journey->{stbStop}{dCncl};
}
}
else {