feat: list_tasks图标补qc_rejected/cancelled

This commit is contained in:
ymq 2026-09-03 17:31:37 +08:00
parent 03473e8fbb
commit 83ce9c820c

View File

@ -2639,7 +2639,8 @@ async def _pm_list_tasks(sor, project_id, params):
if not recs:
return "暂无任务"
icons = {"submitted": "", "running": "🔄", "review": "👀", "qc_review": "🔍",
"approved": "", "completed": "✔️", "failed": "", "waiting": "⏸️"}
"approved": "", "completed": "✔️", "failed": "", "waiting": "⏸️",
"qc_rejected": "🚫", "cancelled": "🛑"}
lines = ["| 状态 | 任务 | 角色 |", "|------|------|------|"]
for r in recs:
st = getattr(r, 'state', '')