A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
pre-commit hooks
florian on nixos (Florian Brandes)37b3fde4e1a5
diff --git a/src/documents/tasks.py b/src/documents/tasks.pyindex 2b5ce8bdc..e7d20eff8 100644--- a/src/documents/tasks.py+++ b/src/documents/tasks.py@@ -4,6 +4,8 @@ import shutilimport tempfileimport tqdm+from asgiref.sync import async_to_sync+from channels.layers import get_channel_layerfrom django.conf import settingsfrom django.db.models.signals import post_savefrom documents import index@@ -21,8 +23,6 @@ from pdf2image import convert_from_pathfrom pikepdf import Pdffrom pyzbar import pyzbarfrom 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",