diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-21 08:53:46 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-21 08:53:46 +0200 |
commit | 3659a25087de216d9543973dffba3814288cf602 (patch) | |
tree | 24226309e12fa879cbffd4b95ca361bbced4861a | |
parent | Check if the account of the user is activated when accessing via the Web serv... (diff) | |
download | newspipe-3659a25087de216d9543973dffba3814288cf602.tar.gz newspipe-3659a25087de216d9543973dffba3814288cf602.tar.bz2 newspipe-3659a25087de216d9543973dffba3814288cf602.zip |
Do not fetch articles for blocked users.
-rwxr-xr-x | fetch.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) |