aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-02-09 10:40:16 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-02-09 10:40:16 +0100
commit1c62bb9afb6b63ac28f5e52d453451d7b97fc210 (patch)
treede3521fdcccd2e390591b80cebf9b29598b04b79
parentMinor improvements to some views. (diff)
parentMinor improvement. (diff)
downloadnewspipe-1c62bb9afb6b63ac28f5e52d453451d7b97fc210.tar.gz
newspipe-1c62bb9afb6b63ac28f5e52d453451d7b97fc210.tar.bz2
newspipe-1c62bb9afb6b63ac28f5e52d453451d7b97fc210.zip
Merge branch 'master' of bitbucket.org:cedricbonhomme/pyaggr3g470r
-rw-r--r--pyaggr3g470r/feedgetter.py2
1 files changed, 1 insertions, 1 deletions
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:
bgstack15