Merge pull request #539 from bbuchacher/master

Fix - Custom objects cannot be serialized in JSON
This commit is contained in:
Miroslav Stampar 2013-10-11 00:10:15 -07:00
commit 16e803c3ca

View File

@ -340,7 +340,8 @@ def task_list(taskid):
""" """
if is_admin(taskid): if is_admin(taskid):
logger.debug("Listed task pull") logger.debug("Listed task pull")
return jsonize({"tasks": tasks, "tasks_num": len(tasks)}) task_list = list(tasks)
return jsonize({"tasks": task_list, "tasks_num": len(tasks)})
else: else:
abort(401) abort(401)