From 0e6264631ba304534e9819cc6f7f758c2fd2a9b7 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 7 Feb 2014 12:03:28 +0100 Subject: Minor improvement. --- pyaggr3g470r/feedgetter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r/feedgetter.py') diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index d544a19e..2325a26e 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -173,6 +173,7 @@ class FeedGetter(object): article = models.Article(post_date, nice_url, article_title, description, False, False) try: article.save() + articles.append(article) pyaggr3g470r_log.info("New article %s (%s) added." % (article_title, nice_url)) except NotUniqueError: pyaggr3g470r_log.error("Article %s (%s) already in the database." % (article_title, nice_url)) @@ -180,7 +181,6 @@ class FeedGetter(object): except Exception as e: pyaggr3g470r_log.error("Error when inserting article in database: " + str(e)) continue - articles.append(article) # add the article to the Whoosh index try: -- cgit