From 3f2a002c6eb8bd931f57670b37b62ecf6f342015 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Tue, 10 Jan 2017 17:14:38 -0800 Subject: [PATCH] analytics/lib/counts.py: Fix one of the COUNT_STATS definitions. Fixes an error in the definition of COUNT_STATS['messages_sent_to_stream:is_bot']. The CountStat needs a group_by argument since it is supposed to group by UserProfile.is_bot. --- analytics/lib/counts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analytics/lib/counts.py b/analytics/lib/counts.py index 661a43b1b7..aeb124d67c 100644 --- a/analytics/lib/counts.py +++ b/analytics/lib/counts.py @@ -353,5 +353,5 @@ COUNT_STATS = { (Message, 'sending_client_id'), CountStat.HOUR, False), 'messages_sent_to_stream:is_bot': CountStat('messages_sent_to_stream:is_bot', zerver_count_message_by_stream, {}, - None, CountStat.HOUR, False) + (UserProfile, 'is_bot'), CountStat.HOUR, False) }