From 49d06b9d69bbef1dfaa5017b1c9e87bb029162f0 Mon Sep 17 00:00:00 2001 From: Vishnu KS Date: Fri, 24 Jul 2020 19:05:58 +0000 Subject: [PATCH] activity: Always include realms on standard plan. --- analytics/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/analytics/views.py b/analytics/views.py index 9eb2fd8e00..e2b04db630 100644 --- a/analytics/views.py +++ b/analytics/views.py @@ -589,7 +589,10 @@ def realm_summary_table(realm_minutes: Dict[str, float]) -> str: GROUP BY realm_id ) wau_counts ON wau_counts.realm_id = realm.id - WHERE EXISTS ( + WHERE + realm.plan_type = 3 + OR + EXISTS ( SELECT * FROM zerver_useractivity ua JOIN zerver_userprofile up