]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
pre-commit hooks
authorflorian on nixos (Florian Brandes) <florian.brandes@posteo.de>
Sat, 26 Mar 2022 08:28:19 +0000 (09:28 +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 2b5ce8bdcadd929410d66374a766891ec237e85b..e7d20eff8688454b5a1ee1a77881c5a1952bbddc 100644 (file)
@@ -4,6 +4,8 @@ import shutil
 import tempfile
 
 import tqdm
+from asgiref.sync import async_to_sync
+from channels.layers import get_channel_layer
 from django.conf import settings
 from django.db.models.signals import post_save
 from documents import index
@@ -21,8 +23,6 @@ from pdf2image import convert_from_path
 from pikepdf import Pdf
 from pyzbar import pyzbar
 from whoosh.writing import AsyncWriter
-from asgiref.sync import async_to_sync
-from channels.layers import get_channel_layer
 
 # barcode decoder
 
@@ -213,7 +213,7 @@ def consume_file(
             "current_progress": 100,
             "max_progress": 100,
             "status": "SUCCESS",
-            "message": "finished"
+            "message": "finished",
         }
         async_to_sync(get_channel_layer().group_send)(
             "status_updates",