mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
enh: sort by descending order
This commit is contained in:
@@ -102,7 +102,9 @@ class ProjectTable:
|
||||
with get_db() as db:
|
||||
return [
|
||||
ProjectModel.model_validate(project)
|
||||
for project in db.query(Project).all()
|
||||
for project in db.query(Project)
|
||||
.order_by(Project.updated_at.desc())
|
||||
.all()
|
||||
]
|
||||
|
||||
def get_project_by_id(self, id: str) -> Optional[ProjectModel]:
|
||||
|
||||
Reference in New Issue
Block a user