aboutsummaryrefslogtreecommitdiff
path: root/app/views/users.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-29 23:15:41 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-29 23:15:41 +0100
commitc80ea2c1b1175257b0f718d9d122a106d62a2169 (patch)
treee8609fc3728ee8cef46b3f587a8a3705a0f80a45 /app/views/users.py
parentedd51b86d0601bbdac04ceeabd6bff470397bb32 (diff)
downloadcheatdb-c80ea2c1b1175257b0f718d9d122a106d62a2169.tar.xz
Sort meta list, and packages on profile
Diffstat (limited to 'app/views/users.py')
-rw-r--r--app/views/users.py2
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 \