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 GROUP BY realm_id
) wau_counts ) wau_counts
ON wau_counts.realm_id = realm.id ON wau_counts.realm_id = realm.id
WHERE EXISTS ( WHERE
realm.plan_type = 3
OR
EXISTS (
SELECT * SELECT *
FROM zerver_useractivity ua FROM zerver_useractivity ua
JOIN zerver_userprofile up JOIN zerver_userprofile up