From 3659a25087de216d9543973dffba3814288cf602 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 21 Jun 2014 08:53:46 +0200 Subject: Do not fetch articles for blocked users. --- fetch.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'fetch.py') 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) -- cgit