mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-11-25 14:36:28 +00: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:
parent
d99d1e3518
commit
5fb3d2f55c
@ -568,7 +568,7 @@ def change_parser():
|
||||
|
||||
def reset_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:
|
||||
return get_data_error_result(message="Document not found!")
|
||||
if doc.token_num > 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user