]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
flake8
authorflorian on nixos (Florian Brandes) <florian.brandes@posteo.de>
Thu, 24 Mar 2022 20:36:57 +0000 (21:36 +0100)
committerFlorian Brandes <florian.brandes@posteo.de>
Thu, 7 Apr 2022 09:14:29 +0000 (11:14 +0200)
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
src/documents/tasks.py

index 4bb3804d2c7fad3678a04ba1242cf7b19d3b954e..23c81e0518fa7c702cc12e98080d618dc543cb9c 100644 (file)
@@ -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()