Skip to content

Commit

Permalink
Changed temporary override logic. (#1882)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaddox5 authored Oct 4, 2023
1 parent c0077e9 commit 7f0bd27
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/screens/v2/widget_instance/reconstructed_alert.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7f0bd27

Please sign in to comment.