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.
This commit is contained in:
Rishi Gupta
2017-01-10 17:14:38 -08:00
committed by Tim Abbott
parent 977f5b9178
commit 3f2a002c6e

View File

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