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:
BaiFu 2026-07-22 19:39:57 +08:00 committed by GitHub
commit 086f1fb5e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ def list_tasks():
return jsonify({
"success": True,
"data": [t.to_dict() for t in tasks],
"data": tasks,
"count": len(tasks)
})