chore: format
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user