activity: Always include realms on standard plan.

This commit is contained in:
Vishnu KS 2020-07-24 19:05:58 +00:00 committed by Tim Abbott
parent f0c4cc9e46
commit 49d06b9d69
1 changed files with 4 additions and 1 deletions

View File

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