Closed jclgoodwin closed 6 years ago
I think the solution is to enable the skipinitialspace behavior of the CSV reader. In models/base.py:
csv_reader = reader(txt_file, skipinitialspace=True)
With this change, I can import that feed.
Fixed by #68
The trips.txt file in this feed https://www.transportforireland.ie/transitData/google_transit_expressbus.zip has some odd lines like
The extra space means
"1"
is used as thedirection_id
, which causes an error (DataError: value too long for type character varying(1)
).