From 18ee9ff3831db08f8ef51d2660fea8a120acc8c8 Mon Sep 17 00:00:00 2001 From: Kim Date: Fri, 8 Nov 2024 12:57:37 -0500 Subject: [PATCH] oops forgot the actual variable --- lib/predictions/predictions.ex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/predictions/predictions.ex b/lib/predictions/predictions.ex index 4104d1be..e6b03439 100644 --- a/lib/predictions/predictions.ex +++ b/lib/predictions/predictions.ex @@ -82,9 +82,10 @@ defmodule Predictions.Predictions do do: stop_time_update["departure"]["time"] - current_time_seconds, else: nil - if stop_time_update["passthrough_time"], - do: stop_time_update["passthrough_time"] - current_time_seconds, - else: nil + seconds_until_passthrough = + if stop_time_update["passthrough_time"], + do: stop_time_update["passthrough_time"] - current_time_seconds, + else: nil vehicle_location = Engine.Locations.for_vehicle(vehicle_id)