year parsing
This commit is contained in:
parent
d566fedf4c
commit
c4f78a0b54
|
@ -34,7 +34,7 @@ def import_csv(path=csv_path):
|
|||
|
||||
for line in lines:
|
||||
try:
|
||||
year = int(line[1].replace('"', '')[0:4])
|
||||
year = int(line[1].replace('"', '').strip()[0:4])
|
||||
year_error = False
|
||||
except:
|
||||
year = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user