mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 11:05:30 +08:00
[Feature] Admin: sort user list by email (#12350)
### What problem does this PR solve? Sort the user list by user email address. ### Type of change - [x] New Feature (non-breaking change which adds functionality) Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -164,7 +164,7 @@ class UserService(CommonService):
|
|||||||
@classmethod
|
@classmethod
|
||||||
@DB.connection_context()
|
@DB.connection_context()
|
||||||
def get_all_users(cls):
|
def get_all_users(cls):
|
||||||
users = cls.model.select()
|
users = cls.model.select().order_by(cls.model.email)
|
||||||
return list(users)
|
return list(users)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user