Skip to content

Fix division by zero in tournament leaderboards ratio calculation - #124

Merged
AgustinSRG merged 1 commit into
AgustinSRG:masterfrom
TurboRx:fix/tour-leaderboards-divide-by-zero
Aug 9, 2026
Merged

Fix division by zero in tournament leaderboards ratio calculation#124
AgustinSRG merged 1 commit into
AgustinSRG:masterfrom
TurboRx:fix/tour-leaderboards-divide-by-zero

Conversation

@TurboRx

@TurboRx TurboRx commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Adds a zero check for user tournament count before calculating ratio-based ranking to prevent NaN or Infinity values on leaderboards.

@TurboRx

TurboRx commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Ok, that was the last one i found and patched from my research list.

@AgustinSRG

AgustinSRG commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Thank you so much for the contributions! You found a lot of mistakes and edge cases I didn't notice. I'll release a new patch version to include these changes.

@AgustinSRG
AgustinSRG merged commit 782fc88 into AgustinSRG:master Aug 9, 2026
2 checks passed
@TurboRx
TurboRx deleted the fix/tour-leaderboards-divide-by-zero branch August 9, 2026 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants