Skip to content

Commit

Permalink
read passthrough_time field directly
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Nov 8, 2024
1 parent b005b04 commit 429bb18
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/predictions/predictions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ defmodule Predictions.Predictions do
do: stop_time_update["departure"]["time"] - current_time_seconds,
else: nil

seconds_until_passthrough =
if not revenue_trip? or schedule_relationship == :skipped,
do: seconds_until_arrival || seconds_until_departure,
else: nil
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)

Expand Down

0 comments on commit 429bb18

Please sign in to comment.