fix the custom json dumps function

This commit is contained in:
Kay0u 2021-10-14 19:24:03 +02:00
parent 4a15903d3d
commit 3de369eaf6
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

2
run.py
View file

@ -89,7 +89,7 @@ def datetime_to_epoch_json_converter(o):
# define a custom json dumps to convert datetime
def my_json_dumps(o):
json.dumps(o, default=datetime_to_epoch_json_converter)
return json.dumps(o, default=datetime_to_epoch_json_converter)
task_logger = logging.getLogger("task")