fix: seed脚本去掉KnowledgeStore不支持的category参数
CI / 后端测试 (push) Has been cancelled
CI / 前端构建 (push) Has been cancelled

This commit is contained in:
selfrelease
2026-09-01 10:52:48 +08:00
parent 4606fcd5c6
commit fbda31b290
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -279,7 +279,7 @@ def main():
title=risk["title"], title=risk["title"],
content=risk["content"], content=risk["content"],
doc_type=risk["doc_type"], doc_type=risk["doc_type"],
category=risk.get("category"),
source=risk.get("source", "BossAi"), source=risk.get("source", "BossAi"),
) )
count += 1 count += 1
+1 -1
View File
@@ -271,7 +271,7 @@ def main():
title=tmpl["title"], title=tmpl["title"],
content=tmpl["content"], content=tmpl["content"],
doc_type=tmpl["doc_type"], doc_type=tmpl["doc_type"],
category=tmpl.get("category"),
source=tmpl.get("source", "BossAi"), source=tmpl.get("source", "BossAi"),
) )
count += 1 count += 1