Change: rename redo OCR to reprocess (#6866)

This commit is contained in:
shamoon
2024-05-31 11:41:52 -07:00
committed by GitHub
parent 324a2aa1c6
commit d558367642
10 changed files with 50 additions and 44 deletions

View File

@@ -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,

View File

@@ -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":