Skip to content

Commit

Permalink
Do not run b2t on flex trips
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteelz committed Sep 30, 2024
1 parent 561ccb5 commit 329edf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks_to_transfers/convert_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def group_trips(gtfs):

for trip in sorted(gtfs.trips.values(),
key=lambda trip: trip.first_departure):
if not trip.block_id:
if (not trip.block_id) or (trip.stop_shape is None):
continue

if len(gtfs.stop_times.get(trip.trip_id, [])) < 2:
Expand Down

0 comments on commit 329edf8

Please sign in to comment.