A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
removed logging from index since it was causing issues with migrations and missing logging groups
Jonas Winkler164be3cfed18
diff --git a/src/documents/index.py b/src/documents/index.pyindex 3fa8bd353..e08d016d2 100644--- a/src/documents/index.py+++ b/src/documents/index.py@@ -68,7 +68,6 @@ def open_index(recreate=False):def update_document(writer, doc):- logging.getLogger(__name__).debug("Updating index with document{}".format(str(doc)))writer.update_document(id=doc.pk,title=doc.title,@@ -86,7 +85,6 @@ def add_document_to_index(sender, instance, **kwargs):@receiver(models.signals.post_delete, sender=Document)def remove_document_from_index(sender, instance, **kwargs):- logging.getLogger(__name__).debug("Removing document {} from index".format(str(instance)))ix = open_index()with AsyncWriter(ix) as writer:writer.delete_by_term('id', instance.pk)