mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
put code under CONSUMER_ENABLE_BARCODES
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
9d2bcf807e
commit
553153ba92
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user