feat: 队列日期格式化 + 任务分母改为真正要下载的数量
部署到群晖 / deploy (push) Successful in 42s

- 队列卡片:显示 📅 2025-11-20 至 2026-04-23,替代原 SQL filter 字符串
- 任务状态:分母改为 qualified - existing_skipped(本次真正待下载数),
  跳过文案在有本次跳过时追加"其中本次跳过 X"
- 新增 existing_skipped 计数器,在 "文件已存在" 和 "db 标记跳过" 两处独立递增

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuming
2026-04-23 10:18:52 +08:00
parent a1499a431f
commit 58194ba29f
3 changed files with 37 additions and 15 deletions
+3
View File
@@ -37,6 +37,8 @@ _task_progress: dict = {
"qualified_files": 0,
# 缓存命中后的预计下载总数;未命中时遍历结束后再赋值
"estimated_total": 0,
# 本次任务中"通过了 filter 但因已下载/被标记而跳过"的数量,用于前端算"真正要下载"的分母
"existing_skipped": 0,
"is_checking": False,
"last_update": 0,
}
@@ -129,6 +131,7 @@ def reset_task_progress():
"failed_files": 0,
"qualified_files": 0,
"estimated_total": 0,
"existing_skipped": 0,
"is_checking": False,
"last_update": time.time(),
}