修复全局组织仪表盘用户总数统计

pull/6154/head
fghbng@qq.com 2021-05-20 11:37:09 +08:00 committed by 老广
parent 53e3fa2590
commit 73f2022ff6
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ class OrgResourceStatisticsCache(OrgRelatedCache):
def compute_users_amount(self):
if self.org.is_root():
users_amount = User.objects.exclude(role='APP').count()
users_amount = User.objects.exclude(role='App').count()
else:
users_amount = OrganizationMember.objects.values(
'user_id'