mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
codestyle
This commit is contained in:
parent
1df922ef16
commit
a0f983f05d
1 changed files with 4 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ def _process_document(doc_in):
|
|||
finally:
|
||||
parser.cleanup()
|
||||
|
||||
|
||||
class Command(Renderable, BaseCommand):
|
||||
|
||||
help = """
|
||||
|
|
@ -62,4 +63,6 @@ class Command(Renderable, BaseCommand):
|
|||
db.connections.close_all()
|
||||
|
||||
with multiprocessing.Pool() as pool:
|
||||
list(tqdm.tqdm(pool.imap_unordered(_process_document, ids), total=len(ids)))
|
||||
list(tqdm.tqdm(
|
||||
pool.imap_unordered(_process_document, ids), total=len(ids)
|
||||
))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue