Hotfix for empty date strings

This commit is contained in:
Dniel97 2023-10-29 00:11:30 +02:00
parent c586e438aa
commit 4cc13cb593
Signed by: Dniel97
GPG Key ID: 6180B3C768FB2E08

View File

@ -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