fix: 精简任务配置规模展示

This commit is contained in:
meijiali
2026-07-06 14:47:26 +08:00
parent 78cc5df73d
commit 89dcf49186
2 changed files with 5 additions and 6 deletions
+1 -4
View File
@@ -183,10 +183,7 @@ def hydrate_task_progress(session: Session, task: Task) -> Task:
task.display_number = display_number
task.display_id = str(display_number)
task.created_at_label = format_datetime_minute(task.created_at)
task.scale_label = (
f"{PLATFORM_LABELS.get(task.platform, task.platform)} · "
f"{task.hotspot_limit}热点 × {task.item_limit_per_hotspot}内容 × {task.comment_limit_per_item}评论"
)
task.scale_label = f"{task.hotspot_limit}热点 × {task.item_limit_per_hotspot}内容 × {task.comment_limit_per_item}评论"
task.error_summary = build_task_error_summary(task)
task.hotspots_count = session.scalar(select(func.count(Hotspot.id)).where(Hotspot.task_id == task.id)) or 0
task.comments_count = session.scalar(select(func.count(Comment.id)).where(Comment.task_id == task.id)) or 0