mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
Reformat log line using black/pre-commit
This commit is contained in:
parent
735619f106
commit
60a8a6ebbb
1 changed files with 4 additions and 2 deletions
|
|
@ -567,8 +567,10 @@ def sync_file_to_knowledge_by_id(
|
||||||
ProcessFileForm(file_id=new_file.id, collection_name=id),
|
ProcessFileForm(file_id=new_file.id, collection_name=id),
|
||||||
user=user,
|
user=user,
|
||||||
)
|
)
|
||||||
log.info(f"[KB Sync] replace kb_id={id} old_id={same_name_file.id} "
|
log.info(
|
||||||
f"new_id={new_file.id} name={new_file.filename}")
|
f"[KB Sync] replace kb_id={id} old_id={same_name_file.id} "
|
||||||
|
f"new_id={new_file.id} name={new_file.filename}"
|
||||||
|
)
|
||||||
|
|
||||||
# Replace old id with new id in knowledge
|
# Replace old id with new id in knowledge
|
||||||
file_ids = [fid for fid in file_ids if fid != same_name_file.id]
|
file_ids = [fid for fid in file_ids if fid != same_name_file.id]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue