Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

added a progress bar to the reindex command.

jonaswinkler46c0ab943f22
diff --git a/src/documents/tasks.py b/src/documents/tasks.py
index 65d767efc..8c9b00dd6 100644
--- a/src/documents/tasks.py
+++ b/src/documents/tasks.py
@@ -1,5 +1,6 @@
import logging
+import tqdm
from django.conf import settings
from whoosh.writing import AsyncWriter
@@ -23,7 +24,7 @@ def index_reindex():
ix = index.open_index(recreate=True)
with AsyncWriter(ix) as writer:
- for document in documents:
+ for document in tqdm.tqdm(documents):
index.update_document(writer, document)