After processing the backlog, continue processes new scans

This commit is contained in:
Eli Ribble 2024-07-31 17:35:40 -07:00
parent 0b22bf5796
commit a009ee7710
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def main():
for i, filename in enumerate(os.listdir(args.watch_path)):
path = args.watch_path / filename
_handle_write_complete(path, args.paperless_url, args.paperless_api_key, i)
return
LOGGER.info("Completed backlog, waiting for new scans")
try:
run(args.watch_path, args.paperless_url, args.paperless_api_key)
except KeyboardInterrupt: