- 队列卡片:显示 📅 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:
@@ -441,6 +441,8 @@ async def download_media(
|
||||
)
|
||||
# Update skip counter
|
||||
increment_task_stat("skipped_files")
|
||||
# 这一类跳过属于"本次任务中发现已下载",单独计数给前端算分母
|
||||
increment_task_stat("existing_skipped")
|
||||
increment_task_stat("checked_messages")
|
||||
return DownloadStatus.SkipDownload, None
|
||||
else:
|
||||
@@ -450,6 +452,8 @@ async def download_media(
|
||||
f"id={message.id} {ui_file_name} {_reason},跳过。\n"
|
||||
)
|
||||
increment_task_stat("skipped_files")
|
||||
# db 标记为跳过也算"本次任务跳过"
|
||||
increment_task_stat("existing_skipped")
|
||||
increment_task_stat("checked_messages")
|
||||
return DownloadStatus.SkipDownload, None
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user