update: properly set progress at the end
This commit is contained in:
1
main.py
1
main.py
@@ -511,6 +511,7 @@ def main(driver: WebDriver):
|
|||||||
tell('程序中断', level=1)
|
tell('程序中断', level=1)
|
||||||
status = Status.TERMINATED
|
status = Status.TERMINATED
|
||||||
|
|
||||||
|
outbox.put(Command('setProgress', cursor, name, recipient, sent, warnings, errors))
|
||||||
progress = cursor / limit * 100
|
progress = cursor / limit * 100
|
||||||
tell('当前进度:%.2f %%' % progress)
|
tell('当前进度:%.2f %%' % progress)
|
||||||
tell(f'已发送 {sent} 封;发送失败 {errors} 封;跳过重复项 {warnings} 个')
|
tell(f'已发送 {sent} 封;发送失败 {errors} 封;跳过重复项 {warnings} 个')
|
||||||
|
|||||||
Reference in New Issue
Block a user