From 5e9006d0c2bf0aff56a65cede5d81d346cb9f99c Mon Sep 17 00:00:00 2001 From: "fghbng@qq.com" Date: Sat, 15 May 2021 16:33:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=BB=9F=E8=AE=A1=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jumpserver/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/jumpserver/api.py b/apps/jumpserver/api.py index 4e734bda6..9e9ceeda6 100644 --- a/apps/jumpserver/api.py +++ b/apps/jumpserver/api.py @@ -220,7 +220,7 @@ class IndexApi(DatesLoginMetricMixin, APIView): query_params = self.request.query_params - caches = OrgResourceStatisticsCache(self.request.user.user_orgs[0]) + caches = OrgResourceStatisticsCache(current_org) _all = query_params.get('all')