Skip to content

Commit

Permalink
extend red line filtering to JFK (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
panentheos authored Nov 6, 2023
1 parent c026bb6 commit 2de209d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/signs/utilities/predictions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ defmodule Signs.Utilities.Predictions do
# predictions following a gap of more than 21 minutes from the previous one,
# since this is a reasonable indicator of this problem.
defp filter_large_red_line_gaps([first | _] = predictions)
when first.stop_id in ~w(70105 Braintree-01 Braintree-02 70104 70102 70100 70094 70092 70090 70088) do
when first.stop_id in ~w(70105 Braintree-01 Braintree-02 70104 70102 70100 70094 70092 70090 70088 70098 70086 70096) do
[%{seconds_until_departure: 0} | predictions]
|> Enum.chunk_every(2, 1, :discard)
|> Enum.take_while(fn [prev, current] ->
Expand Down

0 comments on commit 2de209d

Please sign in to comment.