mirror of
https://github.com/open-webui/open-webui
synced 2025-06-14 10:20:52 +00:00
refac
This commit is contained in:
parent
79c005a041
commit
e3889522d6
@ -112,7 +112,10 @@ class FilesTable:
|
|||||||
with get_db() as db:
|
with get_db() as db:
|
||||||
return [
|
return [
|
||||||
FileModel.model_validate(file)
|
FileModel.model_validate(file)
|
||||||
for file in db.query(File).filter(File.id.in_(ids)).all()
|
for file in db.query(File)
|
||||||
|
.filter(File.id.in_(ids))
|
||||||
|
.order_by(File.updated_at.desc())
|
||||||
|
.all()
|
||||||
]
|
]
|
||||||
|
|
||||||
def get_files_by_user_id(self, user_id: str) -> list[FileModel]:
|
def get_files_by_user_id(self, user_id: str) -> list[FileModel]:
|
||||||
|
Loading…
Reference in New Issue
Block a user