mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 18:17:02 +01:00
run black
Signed-off-by: florian on nixos (Florian Brandes) <florian.brandes@posteo.de>
This commit is contained in:
parent
78ca2ffaba
commit
50f474ae92
2 changed files with 24 additions and 7 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue