A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
added a progress bar to the reindex command.
jonaswinkler46c0ab943f22
diff --git a/src/documents/tasks.py b/src/documents/tasks.pyindex 65d767efc..8c9b00dd6 100644--- a/src/documents/tasks.py+++ b/src/documents/tasks.py@@ -1,5 +1,6 @@import logging+import tqdmfrom django.conf import settingsfrom 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)