From 05dca603ad222b6dcdc49f77a1d2db6f4edd4593 Mon Sep 17 00:00:00 2001
From: Daniel Friesel <derf@finalrewind.org>
Date: Sun, 18 Jul 2021 11:43:23 +0200
Subject: [PATCH] db-iris: show a note if a train should have realtime data,
 but doesn't.

---
 bin/db-iris | 3 +++
 1 file changed, 3 insertions(+)

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;
 }
-- 
GitLab