From ccecf7eee6a7973ece897ac036652ea15105841d Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Sun, 8 Dec 2024 18:13:26 +0100 Subject: [PATCH] Limit results metrics to assessable --- backend/core/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/core/models.py b/backend/core/models.py index 5ab669cfd..0ba763a11 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -2778,6 +2778,7 @@ def get_requirements_result_count(self): ( RequirementAssessment.objects.filter(result=rs) .filter(compliance_assessment=self) + .filter(requirement__assessable=True) .count(), rs, )