diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-13 01:14:26 +0100 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-11-13 01:14:26 +0100 |
| commit | 502a68ebc93f541cfe320ad38278fa721b5802aa (patch) | |
| tree | 021942fd4627a26b2f6537c72180c0e06d7220b0 /famille.py | |
| parent | 7e3c3f7a19e132e0cf513295de25914bcc156629 (diff) | |
| download | famille-flask-502a68ebc93f541cfe320ad38278fa721b5802aa.tar.gz | |
Order comments in ascending order (oldest comments first). Feels more natural
Diffstat (limited to 'famille.py')
| -rw-r--r-- | famille.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'] |
