diff --git a/backend/core/models.py b/backend/core/models.py index abc4048ae..2421f0d07 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -1659,9 +1659,7 @@ def get_ranking_score(self): residual = risk_scenario.residual_level if current >= 0 and residual >= 0: value += (1 + current - residual) * (current + 1) - return ( - abs(round(value / self.MAP_EFFORT[self.effort], 4)) if self.effort else None - ) + return abs(round(value / self.MAP_EFFORT[self.effort], 4)) if self.effort else 0 @property def get_html_url(self):