fix: progress accuracy in slicing mode

This commit is contained in:
2026-06-23 10:45:21 +08:00
parent 397bc4cd95
commit 7ab702e990
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -373,6 +373,7 @@ def main(driver: Chrome, logger = logging.getLogger('main')):
progress['done'] = 0
progress['skip'] = 0
progress['orts'] = 0
progress['subject'] = subject
logger.info('Done')
except Cancel:
@@ -412,6 +413,7 @@ def main(driver: Chrome, logger = logging.getLogger('main')):
if index < options.get('start', 2) or progress['done'] >= options.get('limit', limit):
logger.info("[%d/%d] Not planned; skipping '%s'", index-1, limit-1, email)
progress['orts'] += 1
raise Skip()
match options.get('occurrence'):