aboutsummaryrefslogtreecommitdiff
path: root/source/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-07-24 18:18:30 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-07-24 18:18:30 +0200
commit4a125db6ad4089bf3560af678965365ca85a9009 (patch)
tree7250940d17ff80d4d3ac1165047c50c9dc50d89c /source/feedgetter.py
parentAsyncWriter is used to prevent whoosh.store.LockError error. And we only try ... (diff)
downloadnewspipe-4a125db6ad4089bf3560af678965365ca85a9009.tar.gz
newspipe-4a125db6ad4089bf3560af678965365ca85a9009.tar.bz2
newspipe-4a125db6ad4089bf3560af678965365ca85a9009.zip
Bugfix when checking if an article is already in the database.
Diffstat (limited to 'source/feedgetter.py')
-rwxr-xr-xsource/feedgetter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/feedgetter.py b/source/feedgetter.py
index a9f0b01c..44fd7daa 100755
--- a/source/feedgetter.py
+++ b/source/feedgetter.py
@@ -178,7 +178,7 @@ class FeedGetter(object):
articles.append(article)
- if self.articles.get_articles(feed_id, article_id) == False:
+ if self.articles.get_articles(feed_id, article_id) == []:
# add the article to the Whoosh index
search.add_to_index([article], feed)
bgstack15