Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

analytics: Update query for remote_push_devices in remote activity.

Lauryn Menarddc0b8bcb6be3
diff --git a/analytics/views/remote_activity.py b/analytics/views/remote_activity.py
index b53509bb02c..b5b389de984 100644
--- a/analytics/views/remote_activity.py
+++ b/analytics/views/remote_activity.py
@@ -41,7 +41,10 @@ def get_remote_server_activity(request: HttpRequest) -> HttpResponse:
group by server_id
),
remote_push_devices as (
- select server_id, count(distinct(user_id)) as push_user_count from zilencer_remotepushdevicetoken
+ select
+ server_id,
+ count(distinct(user_id, user_uuid)) as push_user_count
+ from zilencer_remotepushdevicetoken
group by server_id
)
select