mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
Let ruff autofix some things from the newest version
This commit is contained in:
parent
71e4be2d5e
commit
70f3f98363
7 changed files with 16 additions and 16 deletions
|
|
@ -121,7 +121,7 @@ class BarcodeReader:
|
|||
if barcode.text:
|
||||
barcodes.append(barcode.text)
|
||||
logger.debug(
|
||||
f"Barcode of type {str(barcode.format)} found: {barcode.text}",
|
||||
f"Barcode of type {barcode.format} found: {barcode.text}",
|
||||
)
|
||||
|
||||
return barcodes
|
||||
|
|
@ -141,7 +141,7 @@ class BarcodeReader:
|
|||
decoded_barcode = barcode.data.decode("utf-8")
|
||||
barcodes.append(decoded_barcode)
|
||||
logger.debug(
|
||||
f"Barcode of type {str(barcode.type)} found: {decoded_barcode}",
|
||||
f"Barcode of type {barcode.type} found: {decoded_barcode}",
|
||||
)
|
||||
|
||||
return barcodes
|
||||
|
|
@ -348,7 +348,7 @@ class BarcodeReader:
|
|||
|
||||
for idx, document_path in enumerate(doc_paths):
|
||||
if override_name is not None:
|
||||
newname = f"{str(idx)}_{override_name}"
|
||||
newname = f"{idx}_{override_name}"
|
||||
dest = save_to_dir / newname
|
||||
else:
|
||||
dest = save_to_dir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue