mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix: update parser id for change_parser. (#10545)
### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -568,7 +568,7 @@ def change_parser():
|
|||||||
|
|
||||||
def reset_doc():
|
def reset_doc():
|
||||||
nonlocal doc
|
nonlocal doc
|
||||||
e = DocumentService.update_by_id(doc.id, {"parser_id": req["parser_id"], "progress": 0, "progress_msg": "", "run": TaskStatus.UNSTART.value})
|
e = DocumentService.update_by_id(doc.id, {"pipeline_id": req["pipeline_id"], "parser_id": req["parser_id"], "progress": 0, "progress_msg": "", "run": TaskStatus.UNSTART.value})
|
||||||
if not e:
|
if not e:
|
||||||
return get_data_error_result(message="Document not found!")
|
return get_data_error_result(message="Document not found!")
|
||||||
if doc.token_num > 0:
|
if doc.token_num > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user