1
0
Fork 0

admin_service.py: 管理员页面显示的用户名按照名字排序。

Alpha
Hui Lan 2023-03-21 16:22:45 +08:00
parent 9075fe9eea
commit 2909b4d973
1 changed files with 1 additions and 1 deletions

View File

@ -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"):