perf: perf

pull/14860/head
feng 2025-02-05 16:34:56 +08:00 committed by feng626
parent 3ba8412304
commit a047a35d5b
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class PamDashboardApi(APIView):
if agg_key in account_stats:
data[param_key] = account_stats[agg_key]
if (_all or query_params.get('total_ordinary_accounts')):
if _all or query_params.get('total_ordinary_accounts'):
if 'total_count' in account_stats and 'privileged_count' in account_stats:
data['total_ordinary_accounts'] = \
account_stats['total_count'] - account_stats['privileged_count']