summaryrefslogtreecommitdiff
path: root/bin/lookup-server
diff options
context:
space:
mode:
Diffstat (limited to 'bin/lookup-server')
-rwxr-xr-xbin/lookup-server3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/lookup-server b/bin/lookup-server
index 8305305..d54f03d 100755
--- a/bin/lookup-server
+++ b/bin/lookup-server
@@ -110,6 +110,9 @@ class Train:
ts = stopover["arrival"]
if i == 0:
+ if ts > now and (ts - now).seconds > 300:
+ # train has not departed from its initial stop yet and is not about to depart
+ return
continue
prev_eva = int(self.stopovers[i - 1]["stop"]["id"])