mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	added a setting: delete duplicate documents
This commit is contained in:
		| @@ -84,6 +84,8 @@ class Consumer: | ||||
|                 "warning", | ||||
|                 "Skipping {} as it appears to be a duplicate".format(doc) | ||||
|             ) | ||||
|             if settings.CONSUMER_DELETE_DUPLICATES: | ||||
|                 self._cleanup_doc(doc) | ||||
|             return False | ||||
|  | ||||
|         self.log("info", "Consuming {}".format(doc)) | ||||
|   | ||||
| @@ -258,6 +258,8 @@ Q_CLUSTER = { | ||||
| # Paperless Specific Settings                                                 # | ||||
| ############################################################################### | ||||
|  | ||||
| CONSUMER_DELETE_DUPLICATES = __get_boolean("PAPERLESS_CONSUMER_DELETE_DUPLICATES") | ||||
|  | ||||
| # The default language that tesseract will attempt to use when parsing | ||||
| # documents.  It should be a 3-letter language code consistent with ISO 639. | ||||
| OCR_LANGUAGE = os.getenv("PAPERLESS_OCR_LANGUAGE", "eng") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jonas Winkler
					Jonas Winkler