Fixed linting issues
This commit is contained in:
parent
89d3eb5bc3
commit
a5f970ad1d
@ -243,7 +243,9 @@ class BarcodePlugin(ConsumeTaskPlugin):
|
|||||||
barcode_max_pages = num_of_pages
|
barcode_max_pages = num_of_pages
|
||||||
|
|
||||||
if 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
|
# Loop al page
|
||||||
for current_page_number in range(min(num_of_pages, barcode_max_pages)):
|
for current_page_number in range(min(num_of_pages, barcode_max_pages)):
|
||||||
|
@ -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_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(
|
CONSUMER_ENABLE_TAG_BARCODE: Final[bool] = __get_boolean(
|
||||||
"PAPERLESS_CONSUMER_ENABLE_TAG_BARCODE",
|
"PAPERLESS_CONSUMER_ENABLE_TAG_BARCODE",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user