diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-27 11:29:15 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-27 11:29:15 +0100 |
commit | 0d7bbd01a37b82342fa8be806e627e93c9330a07 (patch) | |
tree | 005cb0a9618e3b69e0abb47c089fe1a7f96b79ee /pyaggr3g470r | |
parent | Updated about page. (diff) | |
download | newspipe-0d7bbd01a37b82342fa8be806e627e93c9330a07.tar.gz newspipe-0d7bbd01a37b82342fa8be806e627e93c9330a07.tar.bz2 newspipe-0d7bbd01a37b82342fa8be806e627e93c9330a07.zip |
Sort the list of articles for the /articles page.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index fa67393a..c5f42921 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -59,8 +59,8 @@ def delete(article_id=None): @app.route('/articles/<feed_id>', methods=['GET']) def articles(feed_id=None): feed = models.Feed.objects(id=feed_id).first() - #feed.articles = sorted(feed.articles, key=lambda t: t.date, reverse=True) - #feed.save() + feed.articles = sorted(feed.articles, key=lambda t: t.date, reverse=True) + feed.save() return render_template('articles.html', feed=feed) @app.route('/favorites/', methods=['GET']) |