Implements a better re-do of OCR by making the document archiver function common. Actually creates updated file now

This commit is contained in:
Trenton Holmes
2022-08-21 18:20:59 -07:00
parent 87cf215f3e
commit 059242b7dc
5 changed files with 70 additions and 146 deletions

View File

@@ -122,6 +122,10 @@ def delete(doc_ids):
def redo_ocr(doc_ids):
async_task("documents.tasks.redo_ocr", document_ids=doc_ids)
for document_id in doc_ids:
async_task(
"documents.tasks.update_document_archive_file",
document_id=document_id,
)
return "OK"