mirror of https://github.com/zulip/zulip.git
realm_stats: Also print enter-sends stats.
(imported from commit 34f9d9916e11ac2e2748ecbb8eb4f9a34a110340)
This commit is contained in:
parent
0184f31af0
commit
85086b6662
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue