mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	put code under CONSUMER_ENABLE_BARCODES
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
		| @@ -185,10 +185,10 @@ def consume_file( | ||||
| ): | ||||
|  | ||||
|     # check for separators in current document | ||||
|     separators = [] | ||||
|     if settings.CONSUMER_ENABLE_BARCODES: | ||||
|         separators = scan_file_for_separating_barcodes(path) | ||||
|         separators = [] | ||||
|         document_list = [] | ||||
|         separators = scan_file_for_separating_barcodes(path) | ||||
|         if separators: | ||||
|             logger.debug(f"Pages with separators found in: {str(path)}") | ||||
|             document_list = separate_pages(path, separators) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Florian Brandes
					Florian Brandes