mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Fix todo topics sort order
This commit is contained in:
parent
389258a10c
commit
8e134a7c85
@ -58,7 +58,7 @@ def todo_topics_page():
|
|||||||
|
|
||||||
topics = KrockForumTopic.query \
|
topics = KrockForumTopic.query \
|
||||||
.filter(~ db.exists().where(Package.forums==KrockForumTopic.topic_id)) \
|
.filter(~ db.exists().where(Package.forums==KrockForumTopic.topic_id)) \
|
||||||
.order_by(db.asc(KrockForumTopic.title)) \
|
.order_by(db.asc(KrockForumTopic.name), db.asc(KrockForumTopic.title)) \
|
||||||
.all()
|
.all()
|
||||||
|
|
||||||
return render_template("todo/topics.html", topics=topics, total=total)
|
return render_template("todo/topics.html", topics=topics, total=total)
|
||||||
|
@ -101,7 +101,7 @@ def user_profile_page(username):
|
|||||||
topics_to_add = KrockForumTopic.query \
|
topics_to_add = KrockForumTopic.query \
|
||||||
.filter_by(author_id=user.id) \
|
.filter_by(author_id=user.id) \
|
||||||
.filter(~ db.exists().where(Package.forums==KrockForumTopic.topic_id)) \
|
.filter(~ db.exists().where(Package.forums==KrockForumTopic.topic_id)) \
|
||||||
.order_by(db.asc(KrockForumTopic.title)) \
|
.order_by(db.asc(KrockForumTopic.name), db.asc(KrockForumTopic.title)) \
|
||||||
.all()
|
.all()
|
||||||
|
|
||||||
# Process GET or invalid POST
|
# Process GET or invalid POST
|
||||||
|
Loading…
Reference in New Issue
Block a user