aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2012-11-13 01:14:26 +0100
committerThibaut Horel <thibaut.horel@gmail.com>2012-11-13 01:14:26 +0100
commit502a68ebc93f541cfe320ad38278fa721b5802aa (patch)
tree021942fd4627a26b2f6537c72180c0e06d7220b0
parent7e3c3f7a19e132e0cf513295de25914bcc156629 (diff)
downloadfamille-flask-502a68ebc93f541cfe320ad38278fa721b5802aa.tar.gz
Order comments in ascending order (oldest comments first). Feels more natural
-rw-r--r--famille.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/famille.py b/famille.py
index 82fb42c..c73efbb 100644
--- a/famille.py
+++ b/famille.py
@@ -128,7 +128,7 @@ def show_news(news_id):
comments = query_db("SELECT * FROM comments LEFT JOIN users "
"ON comments.user_id = users.id "
"WHERE comments.news_id = ? "
- "ORDER BY date DESC", (news_id,))
+ "ORDER BY date", (news_id,))
return render_template("news/show.html", news=news, comments=comments)
elif request.method == 'POST':
user_id = session['user_id']