Skip to content

Commit

Permalink
Update migrate.py (#1371)
Browse files Browse the repository at this point in the history
fix bug at line 85 : for kb_file in kb_file
  • Loading branch information
liunux4odoo committed Sep 5, 2023
1 parent 53d3fbc commit 015ce57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/knowledge_base/migrate.py
Expand Up @@ -75,7 +75,7 @@ def folder2db(
files = list_files_from_folder(kb_name)
kb_files = file_to_kbfile(kb_name, files)

for kb_file in kb_file:
for kb_file in kb_files:
add_file_to_db(kb_file)
print(f"已将 {kb_name}/{kb_file.filename} 添加到数据库")
elif mode == "update_in_db":
Expand Down

0 comments on commit 015ce57

Please sign in to comment.