Fix: typo process_duration (#8696)

### What problem does this PR solve?

Fix typo process_duration.

### Type of change

- [x] Documentation Update
- [x] Refactoring
This commit is contained in:
Yongteng Lei
2025-07-07 14:11:47 +08:00
committed by GitHub
parent 789ae87727
commit 4d7bfd2ba3
21 changed files with 42 additions and 34 deletions

View File

@ -300,7 +300,7 @@ def update_doc(tenant_id, dataset_id, document_id):
doc.kb_id,
doc.token_num * -1,
doc.chunk_num * -1,
doc.process_duation * -1,
doc.process_duration * -1,
)
if not e:
return get_error_data_result(message="Document not found!")
@ -526,11 +526,11 @@ def list_docs(dataset_id, tenant_id):
"parser_id": "chunk_method",
}
run_mapping = {
"0": "UNSTART",
"1": "RUNNING",
"2": "CANCEL",
"3": "DONE",
"4": "FAIL",
"0": "UNSTART",
"1": "RUNNING",
"2": "CANCEL",
"3": "DONE",
"4": "FAIL",
}
for doc in docs:
renamed_doc = {}