diff --git a/src/documents/barcodes.py b/src/documents/barcodes.py index 4bf4f450f..de424237c 100644 --- a/src/documents/barcodes.py +++ b/src/documents/barcodes.py @@ -243,7 +243,9 @@ class BarcodePlugin(ConsumeTaskPlugin): barcode_max_pages = num_of_pages if barcode_max_pages < num_of_pages: - logger.debug(f"Reading of barcodes is limited to the first {barcode_max_pages} pages") + logger.debug( + f"Reading of barcodes is limited to the first {barcode_max_pages} pages", + ) # Loop al page for current_page_number in range(min(num_of_pages, barcode_max_pages)): diff --git a/src/paperless/settings.py b/src/paperless/settings.py index ceeb670d4..ebe64ba9e 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -925,7 +925,10 @@ CONSUMER_BARCODE_UPSCALE: Final[float] = __get_float( CONSUMER_BARCODE_DPI: Final[int] = __get_int("PAPERLESS_CONSUMER_BARCODE_DPI", 300) -CONSUMER_BARCODE_MAX_PAGES: Final[int] = __get_int("PAPERLESS_CONSUMER_BARCODE_MAX_PAGES", 0) +CONSUMER_BARCODE_MAX_PAGES: Final[int] = __get_int( + "PAPERLESS_CONSUMER_BARCODE_MAX_PAGES", + 0, +) CONSUMER_ENABLE_TAG_BARCODE: Final[bool] = __get_boolean( "PAPERLESS_CONSUMER_ENABLE_TAG_BARCODE",