fix: 末尾频道快照 + h-skip 累加 + 清理死代码
部署到群晖 / deploy (push) Successful in 3m19s

- 补 download_all_chat 末尾 snapshot + reset,修复最后频道永远卡「🚀下载中」
- h-skip 改为跨频道累加,解决切频道视觉归零
- 清理前端 currentFilter 死变量 / download_stat 无意义三元

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
yuming
2026-04-24 20:28:08 +08:00
parent 8de92095f7
commit c85d0b726d
3 changed files with 13 additions and 7 deletions
+6
View File
@@ -710,6 +710,12 @@ async def download_all_chat(client: pyrogram.Client):
logger.warning(f"Download {key} error: {e}")
finally:
value.need_check = True
# 所有频道串行跑完后,补一次最后频道的快照;否则末尾那个频道永远只留在 _task_progress
# 里、不会进 _completed_chats,前端会一直显示「🚀 下载中」
snapshot_current_chat()
# snapshot 只是复制、不会清空 _task_progress,必须 reset 一下,否则前端 h-skip 会把
# 最后频道的 skipped_files 同时计入 completed_chats 汇总和当前值,造成双计
reset_task_progress()
async def run_until_all_task_finish():