Exclude bots from Active Users in main activity counts.

(imported from commit f0b0d46470dc5a2f7f80fe8f2329e3df9384bc07)
This commit is contained in:
Steve Howell 2013-11-06 15:35:51 -05:00
parent 4aa7ce3bd2
commit a32b47f7d6
1 changed files with 2 additions and 0 deletions

View File

@ -57,6 +57,8 @@ def realm_summary_table(realm_minutes):
)
AND
last_visit > now() - interval '1 day'
AND
not is_bot
GROUP BY realm_id
) user_counts
ON user_counts.realm_id = realm.id