Skip to content

Commit eb8db25

Browse files
author
Manan
committed
TRAN-5069 : Changed conditional logic
1 parent 0d93836 commit eb8db25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gtfs_realtime_translators/translators/njt_bus.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def __make_trip_updates(cls, data, filtered_stops):
5151
continue
5252

5353
# Skip Stop if stop_id is not in filtered stops
54-
if filtered_stops.index(stop_id) < 0 :
54+
if stop_id not in filtered_stops:
5555
continue
5656

5757
stop_name = stop['stopname']
5858
track = stop['manual_lane_gate']
59-
if track is None:
59+
if not track:
6060
track = stop['scheduled_lane_gate']
6161

6262
scheduleddeparturedate = stop['scheduleddeparturedate']

0 commit comments

Comments
 (0)