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