chore: format
This commit is contained in:
@@ -203,9 +203,7 @@ async def process_uploaded_file(
|
||||
else:
|
||||
# Keep the generic file status stream open until the
|
||||
# KB-specific vector write and durable link both finish.
|
||||
await Files.update_file_data_by_id(
|
||||
file_item.id, {'status': 'processing'}, db=db_session
|
||||
)
|
||||
await Files.update_file_data_by_id(file_item.id, {'status': 'processing'}, db=db_session)
|
||||
await process_file(
|
||||
request,
|
||||
ProcessFileForm(file_id=file_item.id, collection_name=knowledge_id),
|
||||
|
||||
@@ -582,9 +582,7 @@ async def update_note_by_id(
|
||||
event_data = note.model_dump()
|
||||
if form_data.data is not None:
|
||||
event_data['data'] = {
|
||||
key: note.data.get(key)
|
||||
for key in form_data.data.keys()
|
||||
if note.data is not None and key in note.data
|
||||
key: note.data.get(key) for key in form_data.data.keys() if note.data is not None and key in note.data
|
||||
}
|
||||
|
||||
await sio.emit(
|
||||
|
||||
Reference in New Issue
Block a user