diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-02-09 10:40:16 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-02-09 10:40:16 +0100 |
commit | 1c62bb9afb6b63ac28f5e52d453451d7b97fc210 (patch) | |
tree | de3521fdcccd2e390591b80cebf9b29598b04b79 /pyaggr3g470r | |
parent | Minor improvements to some views. (diff) | |
parent | Minor improvement. (diff) | |
download | newspipe-1c62bb9afb6b63ac28f5e52d453451d7b97fc210.tar.gz newspipe-1c62bb9afb6b63ac28f5e52d453451d7b97fc210.tar.bz2 newspipe-1c62bb9afb6b63ac28f5e52d453451d7b97fc210.zip |
Merge branch 'master' of bitbucket.org:cedricbonhomme/pyaggr3g470r
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 2 |
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: |