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:
|
for line in lines:
|
||||||
try:
|
try:
|
||||||
year = int(line[1].replace('"', '')[0:4])
|
year = int(line[1].replace('"', '').strip()[0:4])
|
||||||
year_error = False
|
year_error = False
|
||||||
except:
|
except:
|
||||||
year = None
|
year = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user