diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-10-28 22:28:41 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-10-28 22:28:41 +0200 |
commit | c4b8357736976f54b2c32343210dd3612a7d60fe (patch) | |
tree | a54350ba49b19e9e2b930ccbda256a7461b695bf /lib/DBInfoscreen/Controller | |
parent | 70bbd2bd1270ca10cb2f72aad333d265d0936a18 (diff) |
map: handle cancelled arrivals / stops
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r-- | lib/DBInfoscreen/Controller/Map.pm | 4 |
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{}; |