- 队列卡片:显示 📅 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:
@@ -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(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user