Merge pull request #305: fix graph tasks endpoint crash
Remove the redundant to_dict call because TaskManager.list_tasks already returns dictionaries.
This commit is contained in:
commit
086f1fb5e8
|
|
@ -559,7 +559,7 @@ def list_tasks():
|
|||
|
||||
return jsonify({
|
||||
"success": True,
|
||||
"data": [t.to_dict() for t in tasks],
|
||||
"data": tasks,
|
||||
"count": len(tasks)
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue