chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-07-20 22:11:42 -04:00
parent 4a42543fc3
commit 49e57f4e7e
16 changed files with 44 additions and 60 deletions
+1 -3
View File
@@ -1340,9 +1340,7 @@ async def get_sources_from_items(
folder = await Folders.get_folder_by_id(folder_id)
if folder and (user.role == 'admin' or await has_folder_access(user.id, folder, 'read', db=None)):
files = (folder.data or {}).get('files', [])
folder_items.update(
(entry.get('type'), entry.get('id')) for entry in files if isinstance(entry, dict)
)
folder_items.update((entry.get('type'), entry.get('id')) for entry in files if isinstance(entry, dict))
items.extend(files)
for item in items:
@@ -156,9 +156,7 @@ class MilvusClient(VectorDBBase):
except MilvusException as e:
# The index only accelerates resource_id filters; never fail
# collection creation over it.
log.warning(
f'Could not create {RESOURCE_ID_FIELD} index on {mt_collection_name}: {e}'
)
log.warning(f'Could not create {RESOURCE_ID_FIELD} index on {mt_collection_name}: {e}')
log.info(f'Created shared collection: {mt_collection_name}')
return collection