mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-28 03:46:06 -05:00 
			
		
		
		
	this was not required since saving a document updates the index anyway
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonas Winkler
					Jonas Winkler