summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-19 17:45:16 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-19 17:45:16 +0200
commitaa9783f462022ebe0312588d40abc6fd57818bdf (patch)
tree16898e305422b7c5fc866463b86a117ccb5f67da
parent6e8addac3f0c91583b5afc980e0c5c74d5198e29 (diff)
efa departure board: add has_realtime annotations
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 9018299..aa5cb28 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -1750,6 +1750,7 @@ sub handle_efa {
is_bit_delayed =>
( $delay and $delay > 0 and $delay < 5 ? 1 : 0 ),
is_delayed => ( $delay and $delay >= 5 ? 1 : 0 ),
+ has_realtime => defined $delay ? 1 : 0,
occupancy => $result->occupancy,
station => $efa->stop->id,
replaced_by => [],