feat: list_tasks图标补qc_rejected/cancelled
This commit is contained in:
parent
03473e8fbb
commit
83ce9c820c
@ -2639,7 +2639,8 @@ async def _pm_list_tasks(sor, project_id, params):
|
|||||||
if not recs:
|
if not recs:
|
||||||
return "暂无任务"
|
return "暂无任务"
|
||||||
icons = {"submitted": "⏳", "running": "🔄", "review": "👀", "qc_review": "🔍",
|
icons = {"submitted": "⏳", "running": "🔄", "review": "👀", "qc_review": "🔍",
|
||||||
"approved": "✅", "completed": "✔️", "failed": "❌", "waiting": "⏸️"}
|
"approved": "✅", "completed": "✔️", "failed": "❌", "waiting": "⏸️",
|
||||||
|
"qc_rejected": "🚫", "cancelled": "🛑"}
|
||||||
lines = ["| 状态 | 任务 | 角色 |", "|------|------|------|"]
|
lines = ["| 状态 | 任务 | 角色 |", "|------|------|------|"]
|
||||||
for r in recs:
|
for r in recs:
|
||||||
st = getattr(r, 'state', '')
|
st = getattr(r, 'state', '')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user