aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-21 08:53:46 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-21 08:53:46 +0200
commit3659a25087de216d9543973dffba3814288cf602 (patch)
tree24226309e12fa879cbffd4b95ca361bbced4861a
parentCheck if the account of the user is activated when accessing via the Web serv... (diff)
downloadnewspipe-3659a25087de216d9543973dffba3814288cf602.tar.gz
newspipe-3659a25087de216d9543973dffba3814288cf602.tar.bz2
newspipe-3659a25087de216d9543973dffba3814288cf602.zip
Do not fetch articles for blocked users.
-rwxr-xr-xfetch.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/fetch.py b/fetch.py
index 8684b917..67b9b710 100755
--- a/fetch.py
+++ b/fetch.py
@@ -25,6 +25,7 @@ if __name__ == "__main__":
users = User.query.all()
for user in users:
- print "Fetching articles for", user.nickname
- feed_getter = crawler.FeedGetter(user.email)
- feed_getter.retrieve_feed(feed_id)
+ if user.activation_key == "":
+ print "Fetching articles for", user.nickname
+ feed_getter = crawler.FeedGetter(user.email)
+ feed_getter.retrieve_feed(feed_id)
bgstack15