update: properly set progress at the end

This commit is contained in:
2025-09-25 16:20:04 +08:00
parent 2e9c1d3425
commit f40669b63f

View File

@@ -511,6 +511,7 @@ def main(driver: WebDriver):
tell('程序中断', level=1)
status = Status.TERMINATED
outbox.put(Command('setProgress', cursor, name, recipient, sent, warnings, errors))
progress = cursor / limit * 100
tell('当前进度:%.2f %%' % progress)
tell(f'已发送 {sent} 封;发送失败 {errors} 封;跳过重复项 {warnings}')