mirror of https://github.com/zulip/zulip.git
Add is_active check to /realm_activity report.
(imported from commit e531446bc73caf7173e4aa1d22b35f3942c9c1f9)
This commit is contained in:
parent
847d4dfbca
commit
b5707b9c7b
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue