From a009ee77104ffc4e36ba2ec5004c97a955a1191c Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 31 Jul 2024 17:35:40 -0700 Subject: [PATCH] After processing the backlog, continue processes new scans --- scan_uploader/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_uploader/__init__.py b/scan_uploader/__init__.py index 19b896c..95735cb 100644 --- a/scan_uploader/__init__.py +++ b/scan_uploader/__init__.py @@ -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: