Skip to content

Commit

Permalink
tweak: Suppress Alewife platform closure alert. (#2095)
Browse files Browse the repository at this point in the history
* Suppress Alewife platform closure alert.

* Put IDs in variables so they describe where they came from.
  • Loading branch information
cmaddox5 authored Jun 28, 2024
1 parent d743e01 commit dac069f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/screens/v2/widget_instance/reconstructed_alert.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1270,11 +1270,9 @@ defmodule Screens.V2.WidgetInstance.ReconstructedAlert do
def alert_ids(%__MODULE__{} = t), do: [t.alert.id]

def valid_candidate?(%__MODULE__{} = t) do
suppressed =
t.alert.id in ["549108", "555079", "555080"] and
t.location_context.home_stop === "place-gover"

not suppressed
test_alert_ids = ["197140"]
prod_alert_ids = ["580015"]
t.alert.id not in (test_alert_ids ++ prod_alert_ids)
end

defimpl Screens.V2.WidgetInstance do
Expand Down

0 comments on commit dac069f

Please sign in to comment.