diff options
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/feedgetter.py | 2 | ||||
-rw-r--r-- | pyaggr3g470r/models.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/pyaggr3g470r/feedgetter.py b/pyaggr3g470r/feedgetter.py index 2b0c08f9..53e57fa7 100644 --- a/pyaggr3g470r/feedgetter.py +++ b/pyaggr3g470r/feedgetter.py @@ -88,7 +88,7 @@ class FeedGetter(object): articles = [] for article in a_feed['entries']: - if article.link in [farticle.link for farticle in feed.articles]: + if article.link in feed.articles: continue description = "" diff --git a/pyaggr3g470r/models.py b/pyaggr3g470r/models.py index 90801edc..de360697 100644 --- a/pyaggr3g470r/models.py +++ b/pyaggr3g470r/models.py @@ -66,6 +66,9 @@ class Article(Document): ] } + def __eq__(self, other): + return self.link == other + def __str__(self): return 'Article: %s' % self.title |