diff --git a/backend/core/models.py b/backend/core/models.py index 4cd054f10..92777889d 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -1298,7 +1298,7 @@ class Meta: def get_global_score(self): requirement_assessments_scored = RequirementAssessment.objects.filter(compliance_assessment=self).exclude(score=None) score = requirement_assessments_scored.aggregate(models.Avg('score')) - return score['score__avg'] or -1 + return round(score['score__avg'], 1) or -1 def get_requirements_status_count(self): requirements_status_count = []