From 31a03b1d307d84ccaba867cdf5a7a2baef38bd29 Mon Sep 17 00:00:00 2001 From: Peter Kappelt Date: Mon, 16 Jan 2023 08:38:59 +0100 Subject: [PATCH] Proper code formatting --- src/documents/barcodes.py | 4 ++-- src/documents/consumer.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/documents/barcodes.py b/src/documents/barcodes.py index 1bc0075ce..e0664f906 100644 --- a/src/documents/barcodes.py +++ b/src/documents/barcodes.py @@ -137,7 +137,7 @@ def scan_file_for_barcodes( barcodes_on_page = barcode_reader(pillow_img) detected_barcodes.extend( - [(page_num, text) for text in barcodes_on_page] + [(page_num, text) for text in barcodes_on_page], ) return detected_barcodes @@ -149,7 +149,7 @@ def scan_file_for_barcodes( for current_page_number, page in enumerate(pages_from_path): barcodes_on_page = barcode_reader(page) detected_barcodes.extend( - [(current_page_number, text) for text in barcodes_on_page] + [(current_page_number, text) for text in barcodes_on_page], ) return detected_barcodes diff --git a/src/documents/consumer.py b/src/documents/consumer.py index 6f42a692c..aec215e7c 100644 --- a/src/documents/consumer.py +++ b/src/documents/consumer.py @@ -141,7 +141,8 @@ class Consumer(LoggingMixin): if Document.objects.filter(archive_serial_number=self.override_asn).exists(): self.log( "warning", - f"A document with ASN {self.override_asn} already exists. No ASN will be set!", + f"A document with ASN {self.override_asn} already exists. " + + "No ASN will be set!", ) self.override_asn = None