diff options
Diffstat (limited to 'apioforum/forum.py')
-rw-r--r-- | apioforum/forum.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apioforum/forum.py b/apioforum/forum.py index 98c71f7..30e29cb 100644 --- a/apioforum/forum.py +++ b/apioforum/forum.py @@ -29,7 +29,8 @@ def view_forum(): thread_tags[thread['id']] = db.execute( """SELECT tags.* FROM tags INNER JOIN thread_tags ON thread_tags.tag = tags.id - WHERE thread_tags.thread = ?; + WHERE thread_tags.thread = ? + ORDER BY tags.id; """,(thread['id'],)).fetchall() return render_template("view_forum.html",threads=threads,thread_tags=thread_tags) |