Skip to content

Conversation

@johndoknjas
Copy link
Contributor

@johndoknjas johndoknjas commented Mar 19, 2025

Note: this PR applies a fix for games whose Source is 'imported'. I'm not sure if a Source val of 'local' can also refer to games played off lichess; if so, they should be included in this PR too.


For Masters DB games, if the players agreed to a draw by mutual agreement, the game is incorrectly labelled as a draw claim by insufficient material. E.g.:

image

This is due to #17114, where I incorrectly assumed control flows reaching this point in the code could only be draws by insufficient material claims. However, imported games in the Masters DB aren't obliged to provide specific draw info, so they can also reach this point.

…l agreement) are incorrectly reported as insufficient material claims.
@johndoknjas johndoknjas changed the title Don't give draw claims as explanation for imported games Don't give a draw claim as an explanation for imported games Mar 19, 2025
@johndoknjas johndoknjas changed the title Don't give a draw claim as an explanation for imported games Don't give draw claims as explanations for imported games Mar 19, 2025
@ornicar ornicar merged commit 8296a14 into lichess-org:master Mar 19, 2025
3 checks passed
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