Skip to content

Commit

Permalink
more PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteelz committed Mar 20, 2024
1 parent 5e029b9 commit f8aa321
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions blocks_to_transfers/set_pickup_drop_off.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
from gtfs_loader.schema import TransferType, PickupType

def set_pickup_drop_off(gtfs):
from_trip_ids_to_set = set()
to_trip_ids_to_set = set()
for from_trip_id, transfers in gtfs.transfers.items():
for transfer in transfers:
transfer_type = transfer.transfer_type
to_trip_id = transfer.to_trip_id

if not (from_trip_id and to_trip_id):
continue

if transfer_type in TransferType and transfer_type != TransferType.IN_SEAT:
continue

Expand Down

0 comments on commit f8aa321

Please sign in to comment.