From a4a871ff2b48972591f119b075b6164a6349f230 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Fri, 24 Feb 2023 12:16:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E4=BB=8A=E6=97=A5=E6=B4=BB=E8=B7=83=E8=B5=84=E4=BA=A7=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E9=80=BB=E8=BE=91=20(#9745)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bai --- apps/orgs/caches.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/orgs/caches.py b/apps/orgs/caches.py index 1eb54e037..b1f8fbdea 100644 --- a/apps/orgs/caches.py +++ b/apps/orgs/caches.py @@ -114,9 +114,7 @@ class OrgResourceStatisticsCache(OrgRelatedCache): @staticmethod def compute_total_count_today_active_assets(): t = local_zero_hour() - return Session.objects.filter( - date_start__gte=t, is_success=False - ).values('asset_id').distinct().count() + return Session.objects.filter(date_start__gte=t).values('asset_id').distinct().count() @staticmethod def compute_total_count_today_failed_sessions():