aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst3
-rw-r--r--pyaggr3g470r/feedgetter.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index d1553f86..7cc4458f 100644
--- a/README.rst
+++ b/README.rst
@@ -11,7 +11,8 @@ based on `Flask <http://flask.pocoo.org/>`_.
Features
========
-* the database is managed with `SQLAlchemy <http://www.sqlalchemy.org/>`_;
+* can be deployed both on Heroku and on a traditional server;
+* HTTP proxy support;
* feeds batch import with OPML files;
* export all your feeds to OPML;
* e-mail notification;
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