diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-29 23:15:41 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-29 23:15:41 +0100 |
commit | c80ea2c1b1175257b0f718d9d122a106d62a2169 (patch) | |
tree | e8609fc3728ee8cef46b3f587a8a3705a0f80a45 /app/views/users.py | |
parent | edd51b86d0601bbdac04ceeabd6bff470397bb32 (diff) | |
download | cheatdb-c80ea2c1b1175257b0f718d9d122a106d62a2169.tar.xz |
Sort meta list, and packages on profile
Diffstat (limited to 'app/views/users.py')
-rw-r--r-- | app/views/users.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/users.py b/app/views/users.py index a104be4..84e6828 100644 --- a/app/views/users.py +++ b/app/views/users.py @@ -54,6 +54,8 @@ def user_profile_page(username): if not current_user.is_authenticated or (user != current_user and not current_user.canAccessTodoList()): packages = packages.filter_by(approved=True) + packages = packages.order_by(db.asc(Package.title)) + form = None if user.checkPerm(current_user, Permission.CHANGE_DNAME) or \ user.checkPerm(current_user, Permission.CHANGE_EMAIL) or \ |