Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WriteTournamentScore now updates num_scores even if submitted score is not an improvement #1125

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

robtraynor
Copy link
Contributor

@robtraynor robtraynor commented Nov 1, 2023

Previously if a score was not an improvement the WHERE clause on the update query would prevent the num_scores from being updated, this would also cause an issue with the rank cache not correctly deleting the previous score, since the values of the old scores are only retrieved if the query succeds, meaning values would get added multiple times.

This should fix #1124

…s not an improvement

Previously if a score was not an improvement the WHERE clause on the update query would prevent the num_scores from being updated, this would also cause an issue with the rank cache not correctly deleting the previous score, since the values of the old scores are only retrieved if the query succeds, meaning values would get added multiple times.
@CLAassistant
Copy link

CLAassistant commented Nov 1, 2023

CLA assistant check
All committers have signed the CLA.

@zyro zyro merged commit 3309768 into heroiclabs:master Nov 10, 2023
2 checks passed
@zyro
Copy link
Member

zyro commented Nov 10, 2023

Thanks @robtraynor! 🙇

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.

TournamentRecordWrite adds to leaderboard cache even if there isnt't a new score
4 participants