From 9ca909be6f39ab6b34e0b3c4674f7ed523039839 Mon Sep 17 00:00:00 2001 From: Kim Date: Wed, 13 Nov 2024 16:42:07 -0500 Subject: [PATCH] use the right field --- lib/predictions/predictions.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/predictions/predictions.ex b/lib/predictions/predictions.ex index 30bdca8f..c0560d15 100644 --- a/lib/predictions/predictions.ex +++ b/lib/predictions/predictions.ex @@ -23,7 +23,7 @@ defmodule Predictions.Predictions do |> Stream.map(&prediction_from_update(&1, current_time)) |> Enum.reject( &((is_nil(&1.seconds_until_arrival) and is_nil(&1.seconds_until_departure) and - is_nil(&1.passthrough_time)) or + is_nil(&1.seconds_until_passthrough)) or has_departed?(&1)) )