forked from mrlan/EnglishPal
admin_service.py: 管理员页面显示的用户名按照名字排序。
parent
9075fe9eea
commit
2909b4d973
|
@ -110,7 +110,7 @@ def get_page_articles(num, size):
|
||||||
|
|
||||||
def get_users():
|
def get_users():
|
||||||
with db_session:
|
with db_session:
|
||||||
return User.select()[:]
|
return User.select().order_by(User.name)[:]
|
||||||
|
|
||||||
|
|
||||||
def update_user_password(username, password="123456"):
|
def update_user_password(username, password="123456"):
|
||||||
|
|
Loading…
Reference in New Issue