From 6f1a93713f0ded0dc132ee41ce379c5c5434542a Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 8 Jun 2012 20:39:59 +0100 Subject: [PATCH] Don't use len, use count --- app/hr/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/hr/utils.py b/app/hr/utils.py index 13a524a..e6c0ac1 100644 --- a/app/hr/utils.py +++ b/app/hr/utils.py @@ -117,7 +117,7 @@ def send_message(application, message_type, note=None): except: pass - if installed('reddit') and len(application.user.redditaccount_set.all()) > 0: + if installed('reddit') and application.user.redditaccount_set.count(): from reddit.tasks import send_reddit_message for account in application.user.redditaccount_set.all():