aboutsummaryrefslogtreecommitdiff
path: root/app/blueprints/threads
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-10 19:46:14 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-10 19:46:14 +0100
commitd91f537bdd4915448a189b238051905975324d71 (patch)
tree85c02f40c2d61f154b14aa816c4a85514cbe677d /app/blueprints/threads
parent436a4cce2b819740d10721e320c3c80f07c0c27b (diff)
downloadcheatdb-d91f537bdd4915448a189b238051905975324d71.tar.xz
Improve thread list style
Diffstat (limited to 'app/blueprints/threads')
-rw-r--r--app/blueprints/threads/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py
index 09b5eb7..1455c5d 100644
--- a/app/blueprints/threads/__init__.py
+++ b/app/blueprints/threads/__init__.py
@@ -41,6 +41,8 @@ def list_all():
pid = get_int_or_abort(pid)
query = query.filter_by(package_id=pid)
+ query = query.order_by(db.desc(Thread.created_at))
+
return render_template("threads/list.html", threads=query.all())