Hotfix for empty date strings
This commit is contained in:
parent
c586e438aa
commit
4cc13cb593
@ -205,8 +205,9 @@ class Importer:
|
||||
if not self.use_mysql:
|
||||
for column in datetime_columns:
|
||||
ts = row[column["name"]]
|
||||
if ts is None:
|
||||
if ts is None or ts == "":
|
||||
continue
|
||||
|
||||
# actuall remove the last 3 zeros for the correct timestamp
|
||||
fixed_ts = int(str(ts)[:-3])
|
||||
# save the datetim object in the dict
|
||||
|
Loading…
Reference in New Issue
Block a user