From: florian on nixos (Florian Brandes) Date: Thu, 24 Mar 2022 20:36:57 +0000 (+0100) Subject: flake8 X-Git-Tag: beta-1.7.0-rc1~5^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=488fe28ad32849c4aec3bd1db5d97c7e5d495631;p=thirdparty%2Fpaperless-ngx.git flake8 Signed-off-by: florian on nixos (Florian Brandes) --- diff --git a/src/documents/tasks.py b/src/documents/tasks.py index 4bb3804d2c..23c81e0518 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -80,7 +80,7 @@ def barcode_reader(image) -> list: detected_barcodes = pyzbar.decode(image) if not detected_barcodes: - logger.debug(f"No barcode detected") + logger.debug("No barcode detected") else: # Traverse through all the detected barcodes in image for barcode in detected_barcodes: @@ -124,7 +124,7 @@ def separate_pages(filepath: str, pages_to_split_on: list) -> list: # TODO: Get the directory of the file and save the other files there # TODO: Return list of new paths of the new files if len(pages_to_split_on) <= 0: - logger.warning(f"No pages to split on!") + logger.warning("No pages to split on!") else: # go from the first page to the first separator page dst = Pdf.new()