浏览代码

Fix: none parse_config updating. (#6092)

### What problem does this PR solve?

#6081

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.18.0
Kevin Hu 7 个月前
父节点
当前提交
b77e844fc3
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      api/db/services/document_service.py

+ 2
- 0
api/db/services/document_service.py 查看文件

@@ -336,6 +336,8 @@ class DocumentService(CommonService):
@classmethod
@DB.connection_context()
def update_parser_config(cls, id, config):
if not config:
return
e, d = cls.get_by_id(id)
if not e:
raise LookupError(f"Document({id}) not found.")

正在加载...
取消
保存