diff --git a/gtfs_realtime_translators/translators/njt_bus.py b/gtfs_realtime_translators/translators/njt_bus.py index 2fd5bc7..21c8cb7 100644 --- a/gtfs_realtime_translators/translators/njt_bus.py +++ b/gtfs_realtime_translators/translators/njt_bus.py @@ -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']