From 7f0bd27ee6a54d96c6e48e05fc88026cf3a96ac5 Mon Sep 17 00:00:00 2001 From: Christian Maddox Date: Wed, 4 Oct 2023 14:14:19 -0400 Subject: [PATCH] Changed temporary override logic. (#1882) --- lib/screens/v2/widget_instance/reconstructed_alert.ex | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/screens/v2/widget_instance/reconstructed_alert.ex b/lib/screens/v2/widget_instance/reconstructed_alert.ex index dfb2741af..7edc60122 100644 --- a/lib/screens/v2/widget_instance/reconstructed_alert.ex +++ b/lib/screens/v2/widget_instance/reconstructed_alert.ex @@ -652,11 +652,13 @@ defmodule Screens.V2.WidgetInstance.ReconstructedAlert do def alert_ids(%__MODULE__{} = t), do: [t.alert.id] def temporarily_override_alert(%__MODULE__{} = t) do - # Prevent Government Center pre-fare screens from incorrectly communicating - # a GL alert that affects all branches. - not (t.alert.id in ["508765", "508767", "508773", "508776"] and + # Prevent Tufts and Back Bay pre-fare screens from + # showing an OL alert for the Haymarket station closure. + # A static image will be used instead. + not (t.alert.id == "519316" and t.screen.app_params.reconstructed_alert_widget.stop_id in [ - "place-gover" + "place-bbsta", + "place-tumnl" ]) end