aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/feedgetter.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 22:20:31 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-09 22:20:31 +0200
commit5d653a5b490ded026161934d9063a3876f451ccf (patch)
tree07248f53ccfb838c4ef58816193311acef2d34e9 /pyaggr3g470r/feedgetter.py
parentArticles's link are not unique. (diff)
downloadnewspipe-5d653a5b490ded026161934d9063a3876f451ccf.tar.gz
newspipe-5d653a5b490ded026161934d9063a3876f451ccf.tar.bz2
newspipe-5d653a5b490ded026161934d9063a3876f451ccf.zip
Updated README.
Diffstat (limited to 'pyaggr3g470r/feedgetter.py')
-rw-r--r--pyaggr3g470r/feedgetter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py
index 2539124b..90fb45b3 100644
--- a/pyaggr3g470r/feedgetter.py
+++ b/pyaggr3g470r/feedgetter.py
@@ -149,8 +149,8 @@ class FeedGetter(object):
parsed_url.fragment
])
- exist = Article.query.filter(Article.link == nice_url).first()
- if exist != None and exist.source.subscriber.id == self.user.id:
+ list_articles = Article.query.filter(Article.link == nice_url).all()
+ if list_articles != [] and len([article for article in list_articles if article.source.subscriber.id == self.user.id]) != 0:
continue
description = ""
bgstack15