realm_stats: Also print enter-sends stats.

(imported from commit 34f9d9916e11ac2e2748ecbb8eb4f9a34a110340)
This commit is contained in:
Jessica McKellar 2013-03-08 10:00:40 -05:00
parent 0184f31af0
commit 85086b6662
1 changed files with 4 additions and 0 deletions

View File

@ -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()