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.

remote_activity: Hide deactivated remote servers.

Alex Vandiver19575b46f7c8
diff --git a/analytics/views/remote_activity.py b/analytics/views/remote_activity.py
index 36d9af8a3d7..a066b070650 100644
--- a/analytics/views/remote_activity.py
+++ b/analytics/views/remote_activity.py
@@ -69,6 +69,7 @@ def get_remote_server_activity(request: HttpRequest) -> HttpResponse:
left join icount on icount.server_id = rserver.id
left join mobile_push_forwarded_count on mobile_push_forwarded_count.server_id = rserver.id
left join remote_push_devices on remote_push_devices.server_id = rserver.id
+ where not deactivated
order by latest_value DESC NULLS LAST, push_user_count DESC NULLS LAST
"""
)