From cdb89ee2f24be4ff03594bfce9fa3684ef387fd3 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 20 Dec 2022 10:35:05 +0800 Subject: [PATCH] perf: job executed fail api --- 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 565ffbacb..8c5f39642 100644 --- a/apps/jumpserver/api.py +++ b/apps/jumpserver/api.py @@ -327,7 +327,7 @@ class DatesLoginMetricMixin: @lazyproperty def jobs_executed_failed_amount(self): - return self.jobs_executed_queryset.objects.filter( + return self.jobs_executed_queryset.filter( status=JobStatus.failed).count() @lazyproperty