aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-07-06 23:15:56 +0100
committerrubenwardy <rw@rubenwardy.com>2018-07-06 23:17:56 +0100
commit67a229b8a3152329917a0e783822c71d4a53d978 (patch)
treec8eac9da8f906dfd92c6bc90833ddee367933b81 /app/views
parent9dd3570a52027ecb8e84dacb87d66fc511812c3c (diff)
downloadcheatdb-67a229b8a3152329917a0e783822c71d4a53d978.tar.xz
Add WIP forum topic support
Diffstat (limited to 'app/views')
-rw-r--r--app/views/packages/todo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/packages/todo.py b/app/views/packages/todo.py
index 84cfef4..314c374 100644
--- a/app/views/packages/todo.py
+++ b/app/views/packages/todo.py
@@ -58,7 +58,7 @@ def todo_topics_page():
topics = ForumTopic.query \
.filter(~ db.exists().where(Package.forums==ForumTopic.topic_id)) \
- .order_by(db.asc(ForumTopic.name), db.asc(ForumTopic.title)) \
+ .order_by(db.asc(ForumTopic.wip), db.asc(ForumTopic.name), db.asc(ForumTopic.title)) \
.all()
return render_template("todo/topics.html", topics=topics, total=total)