Sun, 07 Jan 2018 00:56:15 +0200
fix parsing
buses.py | file | annotate | diff | comparison | revisions |
--- a/buses.py Thu Dec 14 13:59:40 2017 +0200 +++ b/buses.py Sun Jan 07 00:56:15 2018 +0200 @@ -434,7 +434,7 @@ with gtfs_zip.open('stop_times.txt') as file: progress = 0 for row in read_csv(map(bytes.decode, file)): - if int(row.get('pickup_type', 0)) and int(row.get('drop_off_type', 0)): + if int(row.get('pickup_type', '') or '0') and int(row.get('drop_off_type', '') or '0'): continue trip = all_trips[transform_trip_reference(row['trip_id'])] arrival_time = read_time(row['arrival_time'])