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

Fix winrate updating #180

Merged
merged 2 commits into from Jun 23, 2018
Merged

Fix winrate updating #180

merged 2 commits into from Jun 23, 2018

Conversation

bood
Copy link

@bood bood commented Jun 22, 2018

Winrate and SPRT value also needs to be updated when cache updates

@bood bood mentioned this pull request Jun 22, 2018
@@ -52,6 +58,7 @@ async function update_matches_stats_cache(db, match_id, is_network1_win) {
} else {
match.network1_losses += 1;
}
_update_winrate(matches.slice(0, 1));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The match being updated isn't always the first match. Probably could just pass in [match]

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Fixed.

It is not always the first match being updated
@roy7 roy7 merged commit dcc4fcc into leela-zero:next Jun 23, 2018
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.

None yet

3 participants