diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-07-17 23:32:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-07-17 23:33:29 +0200 |
commit | 5b06acde2a2345524962c7e64d4696a0ce917883 (patch) | |
tree | f2a39964a17db1bba73d07ed54dfff798a60b80e /lib/DBInfoscreen/Helper/HAFAS.pm | |
parent | b1a0853ddf4238c895d86dbfc12d67f4ea6303f2 (diff) |
train details: annotate possibly bogus (schedule-only) times
Diffstat (limited to 'lib/DBInfoscreen/Helper/HAFAS.pm')
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index 4a3c3e7..2bef744 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -381,6 +381,17 @@ sub get_route_timestamps_p { $ret->{$name}{rt_dep} = $ret->{$name}{sched_dep} ->clone->add( minutes => $delay->{ddelay} ); } + if ( + ( + defined $delay->{adelay} + and $delay->{adelay} eq q{} + ) + or + ( defined $delay->{ddelay} and $delay->{ddelay} eq q{} ) + ) + { + $ret->{$name}{rt_bogus} = 1; + } } } |