diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-28 00:28:16 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-28 00:28:16 +0100 |
commit | e43cf71fe33e10ac590878dd3ca5c6ed234f5e95 (patch) | |
tree | b6c959b3f7c97c684be512f35fcc4853e78a424b /pyaggr3g470r/views.py | |
parent | SECRET_KEY is set by os.urandom(12). (diff) | |
download | newspipe-e43cf71fe33e10ac590878dd3ca5c6ed234f5e95.tar.gz newspipe-e43cf71fe33e10ac590878dd3ca5c6ed234f5e95.tar.bz2 newspipe-e43cf71fe33e10ac590878dd3ca5c6ed234f5e95.zip |
Sorting of articles seems to be working ;-)
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index f2cfc095..81c60e73 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -59,7 +59,7 @@ 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.articles = sorted(feed.articles, key=lambda t: t.date, reverse=True) return render_template('articles.html', feed=feed) @app.route('/favorites/', methods=['GET']) |