Skip to content

Commit

Permalink
TRAN-5069 : Changed conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Manan committed Jul 6, 2021
1 parent 0d93836 commit eb8db25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gtfs_realtime_translators/translators/njt_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def __make_trip_updates(cls, data, filtered_stops):
continue

# Skip Stop if stop_id is not in filtered stops
if filtered_stops.index(stop_id) < 0 :
if stop_id not in filtered_stops:
continue

stop_name = stop['stopname']
track = stop['manual_lane_gate']
if track is None:
if not track:
track = stop['scheduled_lane_gate']

scheduleddeparturedate = stop['scheduleddeparturedate']
Expand Down

0 comments on commit eb8db25

Please sign in to comment.