mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
counts.py: Fix count_message_type_by_user_query.
This commit is contained in:
@@ -289,7 +289,7 @@ zerver_count_stream_by_realm = ZerverCountQuery(Stream, RealmCount, count_stream
|
|||||||
count_message_type_by_user_query = """
|
count_message_type_by_user_query = """
|
||||||
INSERT INTO analytics_usercount
|
INSERT INTO analytics_usercount
|
||||||
(realm_id, user_id, value, property, subgroup, end_time, interval)
|
(realm_id, user_id, value, property, subgroup, end_time, interval)
|
||||||
SELECT realm_id, id, SUM(count) AS value, 'message_type_by_user', message_type, %%(time_end)s, '%(interval)s'
|
SELECT realm_id, id, SUM(count) AS value, '%(property)s', message_type, %%(time_end)s, '%(interval)s'
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT zerver_userprofile.realm_id, zerver_userprofile.id, count(*),
|
SELECT zerver_userprofile.realm_id, zerver_userprofile.id, count(*),
|
||||||
|
|||||||
Reference in New Issue
Block a user