# HG changeset patch # User Teemu Piippo # Date 1515279375 -7200 # Node ID 0773b4e5fd109637f7a0c9a3322258ca558d431a # Parent ba854da8c424e6436bff1006d1ba3907db7cd9d2 fix parsing diff -r ba854da8c424 -r 0773b4e5fd10 buses.py --- 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'])