mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Change: rename redo OCR to reprocess (#6866)
This commit is contained in:
@@ -165,7 +165,7 @@ def delete(doc_ids: list[int]):
|
||||
return "OK"
|
||||
|
||||
|
||||
def redo_ocr(doc_ids: list[int]):
|
||||
def reprocess(doc_ids: list[int]):
|
||||
for document_id in doc_ids:
|
||||
update_document_archive_file.delay(
|
||||
document_id=document_id,
|
||||
|
@@ -939,7 +939,7 @@ class BulkEditSerializer(
|
||||
"modify_tags",
|
||||
"modify_custom_fields",
|
||||
"delete",
|
||||
"redo_ocr",
|
||||
"reprocess",
|
||||
"set_permissions",
|
||||
"rotate",
|
||||
"merge",
|
||||
@@ -991,8 +991,8 @@ class BulkEditSerializer(
|
||||
return bulk_edit.modify_custom_fields
|
||||
elif method == "delete":
|
||||
return bulk_edit.delete
|
||||
elif method == "redo_ocr":
|
||||
return bulk_edit.redo_ocr
|
||||
elif method == "redo_ocr" or method == "reprocess":
|
||||
return bulk_edit.reprocess
|
||||
elif method == "set_permissions":
|
||||
return bulk_edit.set_permissions
|
||||
elif method == "rotate":
|
||||
|
Reference in New Issue
Block a user