aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/feedgetter.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-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