From 764d4e2f89ae8db0b9b14861d680eaa8b808998a Mon Sep 17 00:00:00 2001 From: Paul Kim Date: Fri, 7 Jun 2024 13:42:37 -0400 Subject: [PATCH] Consider stopped trains as a prediction (#761) --- lib/signs/utilities/last_trip.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/signs/utilities/last_trip.ex b/lib/signs/utilities/last_trip.ex index c57622e24..ed6dc24c1 100644 --- a/lib/signs/utilities/last_trip.ex +++ b/lib/signs/utilities/last_trip.ex @@ -101,7 +101,8 @@ defmodule Signs.Utilities.LastTrip do end defp is_prediction?(message) do - match?(%Content.Message.Predictions{}, message) + match?(%Content.Message.Predictions{}, message) or + match?(%Content.Message.StoppedTrain{}, message) end defp is_empty?(message) do