diff --git a/backend/core/models.py b/backend/core/models.py index abc4048ae..f3c9f2f24 100644 --- a/backend/core/models.py +++ b/backend/core/models.py @@ -1660,7 +1660,7 @@ def get_ranking_score(self): 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 + abs(round(value / self.MAP_EFFORT[self.effort], 4)) if self.effort else 0 ) @property