mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 00:57:09 +01:00
Implements a better re-do of OCR by making the document archiver function common. Actually creates updated file now
This commit is contained in:
parent
fccea022fa
commit
ab761e837c
5 changed files with 70 additions and 146 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue