summaryrefslogtreecommitdiff
path: root/bin/db-iris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-18 11:43:23 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-18 11:43:23 +0200
commit05dca603ad222b6dcdc49f77a1d2db6f4edd4593 (patch)
tree1994bb4c26b6bf53f63854b23ba829aa16cc166f /bin/db-iris
parent79ce658690f95bad7b268958e2cf7c979b7b7f0f (diff)
db-iris: show a note if a train should have realtime data, but doesn't.
Diffstat (limited to 'bin/db-iris')
-rwxr-xr-xbin/db-iris3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/db-iris b/bin/db-iris
index 02d4b15..4bcbbfb 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -293,6 +293,9 @@ sub format_delay {
elsif ( $d->departure_is_cancelled ) {
$delay .= ' ⊖';
}
+ elsif ( $d->start < $datetime and not $d->has_realtime ) {
+ $delay = ' ?';
+ }
return $delay;
}