support str value
This commit is contained in:
parent
27031dbf0e
commit
0442e772c2
@ -64,10 +64,12 @@ class Logger:
|
||||
d = {}
|
||||
for key, value in row.items():
|
||||
if key == 'data':
|
||||
if not value:
|
||||
if isinstance(value, dict):
|
||||
pass
|
||||
elif not value:
|
||||
value = {}
|
||||
# else:
|
||||
# value = loads(value)
|
||||
else:
|
||||
value = loads(value)
|
||||
elif key in ['start_date', 'stop_date']:
|
||||
value = str(value)
|
||||
d[key] = value
|
||||
|
Loading…
Reference in New Issue
Block a user