From b5707b9c7bd0fc6223f15b98a59b2e2f4c78f21a Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Sun, 24 Nov 2013 16:31:44 -0500 Subject: [PATCH] Add is_active check to /realm_activity report. (imported from commit e531446bc73caf7173e4aa1d22b35f3942c9c1f9) --- analytics/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/analytics/views.py b/analytics/views.py index 5e27013059..eb13adc979 100644 --- a/analytics/views.py +++ b/analytics/views.py @@ -540,6 +540,7 @@ def get_user_activity_records_for_realm(realm, is_bot): records = UserActivity.objects.filter( user_profile__realm__domain=realm, + user_profile__is_active=True, user_profile__is_bot=is_bot ) records = records.order_by("user_profile__email", "-last_visit")