Compare commits
2 Commits
b0edfb7b01
...
52209a5ebd
Author | SHA1 | Date |
---|---|---|
Emmanuel Garette | 52209a5ebd | |
Emmanuel Garette | 0442e772c2 |
|
@ -64,10 +64,12 @@ class Logger:
|
||||||
d = {}
|
d = {}
|
||||||
for key, value in row.items():
|
for key, value in row.items():
|
||||||
if key == 'data':
|
if key == 'data':
|
||||||
if not value:
|
if isinstance(value, dict):
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue