From 3d5dad95d7e8246dd8c1477b38b55915de1709b6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 30 Dec 2013 09:30:58 +0100 Subject: sorting by date all articles for each feed. --- pyaggr3g470r/feedgetter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index 65d462da..71e5b0a8 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -161,7 +161,7 @@ class FeedGetter(object): # add the articles to the list of articles for the current feed feed.articles.extend(articles) - #feed.articles = sorted(feed.articles, key=lambda t: t.date, reverse=True) + feed.articles = sorted(feed.articles, key=lambda t: t.date, reverse=True) self.user.save() -- cgit