minor fix

This commit is contained in:
2026-07-08 15:22:24 +08:00
parent feb3020fba
commit 73f2569b3d
+1 -1
View File
@@ -409,7 +409,7 @@ def main(driver: Chrome, logger = logging.getLogger('main')):
raise Skip() raise Skip()
if options.get('slice') and (start := options.get('start')) and (end := options.get('limit')): if options.get('slice') and (start := options.get('start')) and (end := options.get('limit')):
if index < start or index > start + end: if index < start or index >= start + end:
logger.info("[%d/%d] Not planned; skipping '%s'", index-1, limit-1, email) logger.info("[%d/%d] Not planned; skipping '%s'", index-1, limit-1, email)
raise Next() raise Next()
if (items := options.get('subcategories')) and (item := str(cell(index, column.region).value)) not in items: if (items := options.get('subcategories')) and (item := str(cell(index, column.region).value)) not in items: