From 763920193d3fe46125e54f2d53580be7cb7fcf38 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 18 Jul 2021 09:18:28 +0200 Subject: Show cancelled stops in HAFAS-only train details view --- lib/DBInfoscreen/Helper/HAFAS.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/DBInfoscreen/Helper') diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index 2bef744..2bc252a 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -392,6 +392,9 @@ sub get_route_timestamps_p { { $ret->{$name}{rt_bogus} = 1; } + if ( $delay->{ddelay} and $delay->{ddelay} eq 'cancel' ) { + $ret->{$name}{isCancelled} = 1; + } } } -- cgit v1.2.3