After processing the backlog, continue processes new scans
This commit is contained in:
parent
0b22bf5796
commit
a009ee7710
|
@ -33,7 +33,7 @@ def main():
|
||||||
for i, filename in enumerate(os.listdir(args.watch_path)):
|
for i, filename in enumerate(os.listdir(args.watch_path)):
|
||||||
path = args.watch_path / filename
|
path = args.watch_path / filename
|
||||||
_handle_write_complete(path, args.paperless_url, args.paperless_api_key, i)
|
_handle_write_complete(path, args.paperless_url, args.paperless_api_key, i)
|
||||||
return
|
LOGGER.info("Completed backlog, waiting for new scans")
|
||||||
try:
|
try:
|
||||||
run(args.watch_path, args.paperless_url, args.paperless_api_key)
|
run(args.watch_path, args.paperless_url, args.paperless_api_key)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
|
Loading…
Reference in New Issue