Compare commits

..

No commits in common. "52209a5ebd05df89913c23680c5beb98c12d5804" and "b0edfb7b01dbf9bdc59c0fb1fda1847f9339ab33" have entirely different histories.

1 changed files with 3 additions and 5 deletions

View File

@ -64,12 +64,10 @@ class Logger:
d = {} d = {}
for key, value in row.items(): for key, value in row.items():
if key == 'data': if key == 'data':
if isinstance(value, dict): if not value:
pass
elif not value:
value = {} value = {}
else: # else:
value = loads(value) # value = loads(value)
elif key in ['start_date', 'stop_date']: elif key in ['start_date', 'stop_date']:
value = str(value) value = str(value)
d[key] = value d[key] = value