summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-28 22:28:41 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-28 22:28:41 +0200
commitc4b8357736976f54b2c32343210dd3612a7d60fe (patch)
treea54350ba49b19e9e2b930ccbda256a7461b695bf /lib/DBInfoscreen/Controller
parent70bbd2bd1270ca10cb2f72aad333d265d0936a18 (diff)
map: handle cancelled arrivals / stops
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Map.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm
index 5c46811..63b8b40 100644
--- a/lib/DBInfoscreen/Controller/Map.pm
+++ b/lib/DBInfoscreen/Controller/Map.pm
@@ -243,7 +243,7 @@ sub route_to_ajax {
my @stop_entries = ( $stop->{name} );
my $platform;
- if ( my $arr = $stop->{arr} ) {
+ if ( my $arr = $stop->{arr} and not $stop->{arr_cancelled} ) {
my $delay = $stop->{arr_delay} // 0;
$platform = $stop->{arr_platform};
@@ -253,7 +253,7 @@ sub route_to_ajax {
push( @stop_entries, q{}, q{} );
}
- if ( my $dep = $stop->{dep} ) {
+ if ( my $dep = $stop->{dep} and not $stop->{dep_cancelled} ) {
my $delay = $stop->{dep_delay} // 0;
$platform //= $stop->{dep_platform} // q{};