Reformat log line using black/pre-commit

This commit is contained in:
Stoyan Zlatev 2025-10-27 23:09:49 +02:00
parent 735619f106
commit 60a8a6ebbb

View file

@ -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]