diff --git a/main.py b/main.py index 2444f7e..d60048f 100644 --- a/main.py +++ b/main.py @@ -409,7 +409,7 @@ def main(driver: Chrome, logger = logging.getLogger('main')): raise Skip() 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) raise Next() if (items := options.get('subcategories')) and (item := str(cell(index, column.region).value)) not in items: