From 85086b66622afa88b73e140a09eedf150ad182ae Mon Sep 17 00:00:00 2001 From: Jessica McKellar Date: Fri, 8 Mar 2013 10:00:40 -0500 Subject: [PATCH] realm_stats: Also print enter-sends stats. (imported from commit 34f9d9916e11ac2e2748ecbb8eb4f9a34a110340) --- zephyr/management/commands/realm_stats.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zephyr/management/commands/realm_stats.py b/zephyr/management/commands/realm_stats.py index be953f158b..4f80c98acd 100644 --- a/zephyr/management/commands/realm_stats.py +++ b/zephyr/management/commands/realm_stats.py @@ -59,6 +59,10 @@ class Command(BaseCommand): if StreamColor.objects.filter(subscription__user_profile=profile).count() > 0: colorizers += 1 print "%.2f%% have colorized streams" % (float(colorizers) * 100/len(user_profiles),) + + print "%.2f%% have Enter sends" % ( + float(len(filter(lambda x: x.enter_sends, user_profiles))) * 100 / len(user_profiles),) + all_message_count = Message.objects.filter(sender__realm=realm).count() multi_paragraph_message_count = Message.objects.filter(sender__realm=realm, content__contains="\n\n").count()