aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-02-07 12:03:28 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-02-07 12:03:28 +0100
commit0e6264631ba304534e9819cc6f7f758c2fd2a9b7 (patch)
tree5163440a51767fdf89a3b83d01632a3c05559900 /pyaggr3g470r
parentNew flash message. (diff)
downloadnewspipe-0e6264631ba304534e9819cc6f7f758c2fd2a9b7.tar.gz
newspipe-0e6264631ba304534e9819cc6f7f758c2fd2a9b7.tar.bz2
newspipe-0e6264631ba304534e9819cc6f7f758c2fd2a9b7.zip
Minor improvement.
Diffstat (limited to '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