Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16e803c

Browse files
committed
Merge pull request #539 from bbuchacher/master
Fix - Custom objects cannot be serialized in JSON
2 parents 4c39235 + 54a6c01 commit 16e803c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/utils/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ def task_list(taskid):
340340
"""
341341
if is_admin(taskid):
342342
logger.debug("Listed task pull")
343-
return jsonize({"tasks": tasks, "tasks_num": len(tasks)})
343+
task_list = list(tasks)
344+
return jsonize({"tasks": task_list, "tasks_num": len(tasks)})
344345
else:
345346
abort(401)
346347

0 commit comments

Comments
 (0)