this was not required since saving a document updates the index anyway

This commit is contained in:
Jonas Winkler 2020-11-03 13:51:49 +01:00
parent 09ad644dd1
commit 6f3d25d7b1
2 changed files with 0 additions and 6 deletions

View File

@ -16,7 +16,6 @@ class DocumentsConfig(AppConfig):
run_post_consume_script,
cleanup_document_deletion,
set_log_entry,
index_document,
set_correspondent,
set_document_type,
set_tags
@ -25,7 +24,6 @@ class DocumentsConfig(AppConfig):
document_consumption_started.connect(run_pre_consume_script)
document_consumption_finished.connect(index_document)
document_consumption_finished.connect(add_inbox_tags)
document_consumption_finished.connect(set_correspondent)
document_consumption_finished.connect(set_document_type)

View File

@ -16,10 +16,6 @@ def logger(message, group):
logging.getLogger(__name__).debug(message, extra={"group": group})
def index_document(sender, document=None, logging_group=None, **kwargs):
index.add_document_to_index(sender, instance=document)
def add_inbox_tags(sender, document=None, logging_group=None, **kwargs):
inbox_tags = Tag.objects.filter(is_inbox_tag=True)
document.tags.add(*inbox_tags)