mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 11:42:29 +08:00
feat: dataset list add order by created at (#487)
This commit is contained in:
parent
5e2c3eeac3
commit
ed6648a41e
|
@ -35,6 +35,7 @@ class DatasetService:
|
|||
permission_filter = Dataset.permission == 'all_team_members'
|
||||
datasets = Dataset.query.filter(
|
||||
db.and_(Dataset.provider == provider, Dataset.tenant_id == tenant_id, permission_filter)) \
|
||||
.order_by(Dataset.created_at.desc()) \
|
||||
.paginate(
|
||||
page=page,
|
||||
per_page=per_page,
|
||||
|
|
Loading…
Reference in New Issue
Block a user