update: properly set progress at the end
This commit is contained in:
1 parent
2e9c1d3425
commit
f40669b63f
1 file changed
+1
@@ -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