aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-28 00:28:16 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-28 00:28:16 +0100
commite43cf71fe33e10ac590878dd3ca5c6ed234f5e95 (patch)
treeb6c959b3f7c97c684be512f35fcc4853e78a424b /pyaggr3g470r/views.py
parentSECRET_KEY is set by os.urandom(12). (diff)
downloadnewspipe-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.py2
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'])
bgstack15