Skip to content

Commit

Permalink
hotfix: get_ranking_score() fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Nov 22, 2024
1 parent fe84a80 commit a8d1b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8d1b70

Please sign in to comment.