Skip to content

Conversation

@luator
Copy link
Member

@luator luator commented Dec 9, 2025

Log all user rating changes (after games and due to score decay) in a new database table.
This log may be useful later for analyzing how the leaderboard evolves.

Closes #189.

Add new table rating_change_log in which updated user ratings are
logged (both after finished games and due to score decay).

Small change to the score decay: Filter out users who are already at the
maximum sigma.  Their score wouldn't change anymore and by skipping
them, we do not pollute the logs with basically meaningless entries.
It is useful to re-run the script on an existing database if the only
change was adding tables.  So instead of directly exiting in this case,
ask for confirmation.
It is much shorter and says basically the same.
@luator luator self-assigned this Dec 9, 2025
@luator luator merged commit ca3c040 into main Dec 9, 2025
10 checks passed
@luator luator deleted the fkloss/rating_change_log branch December 9, 2025 15:49
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.

Safe score changes after each game.

2 participants