diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-24 18:18:30 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-24 18:18:30 +0200 |
commit | 4a125db6ad4089bf3560af678965365ca85a9009 (patch) | |
tree | 7250940d17ff80d4d3ac1165047c50c9dc50d89c | |
parent | AsyncWriter is used to prevent whoosh.store.LockError error. And we only try ... (diff) | |
download | newspipe-4a125db6ad4089bf3560af678965365ca85a9009.tar.gz newspipe-4a125db6ad4089bf3560af678965365ca85a9009.tar.bz2 newspipe-4a125db6ad4089bf3560af678965365ca85a9009.zip |
Bugfix when checking if an article is already in the database.
-rwxr-xr-x | source/feedgetter.py | 2 |
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) |