mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
fix the custom json dumps function
This commit is contained in:
parent
4a15903d3d
commit
3de369eaf6
1 changed files with 1 additions and 1 deletions
2
run.py
2
run.py
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue