Skip to content

Commit

Permalink
Turn off crowding (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim authored Sep 18, 2023
1 parent 8a1ae69 commit 51de9d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions lib/signs/utilities/audio.ex
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,7 @@ defmodule Signs.Utilities.Audio do
end
|> tap(&log_crowding(&1, sign.id))
|> Enum.map(fn %{__struct__: audio_type} = audio ->
if audio_type in [Audio.Approaching, Audio.TrainIsArriving] and
sign.id not in [
"ruggles_northbound",
"tufts_northbound",
"back_bay_northbound",
"back_bay_southbound",
"back_bay_mezzanine"
] do
if audio_type in [Audio.Approaching, Audio.TrainIsArriving] and sign.id not in [] do
%{audio | crowding_description: nil}
else
audio
Expand Down
6 changes: 3 additions & 3 deletions test/signs/utilities/audio_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ defmodule Signs.Utilities.AudioTest do
assert [
%Content.Audio.Approaching{
destination: :oak_grove,
crowding_description: {:front, :some_crowding}
crowding_description: nil
}
] = audios
end
Expand Down Expand Up @@ -891,7 +891,7 @@ defmodule Signs.Utilities.AudioTest do
assert [
%Content.Audio.Approaching{
destination: :oak_grove,
crowding_description: {:front, :some_crowding}
crowding_description: nil
}
] = audios

Expand Down Expand Up @@ -945,7 +945,7 @@ defmodule Signs.Utilities.AudioTest do
assert [
%Content.Audio.TrainIsArriving{
destination: :oak_grove,
crowding_description: {:front, :some_crowding}
crowding_description: nil
}
] = audios
end
Expand Down

0 comments on commit 51de9d0

Please sign in to comment.