run black

Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
florian on nixos (Florian Brandes) authored and Florian Brandes committed 2022-04-07 11:14:29 +02:00
1 parent 78ca2ffaba
commit 50f474ae92
2 files changed
+24 -7

No files matched your search

+3
View File
@@ -21,6 +21,7 @@ from pdf2image import convert_from_path
from pikepdf import Pdf
from pyzbar import pyzbar
from whoosh.writing import AsyncWriter
# barcode decoder
logger = logging.getLogger("paperless.tasks")
@@ -156,6 +157,7 @@ def separate_pages(filepath: str, pages_to_split_on: list) -> list:
logger.debug(f"Temp files are {str(document_paths)}")
return document_paths
def save_to_dir(filepath, target_dir=settings.CONSUMPTION_DIR):
"""
Copies filepath to target_dir.
@@ -165,6 +167,7 @@ def save_to_dir(filepath, target_dir=settings.CONSUMPTION_DIR):
else:
logger.warning(f"{str(filepath)} or {str(target_dir)} don't exist.")
def consume_file(
path,
override_filename=None,