Skip to content

Commit 9f8a039

Browse files
authored
Merge pull request #19 from FranklinChen/patch-1
Fix bug in clean_game
2 parents 7a4d244 + f9bc2ee commit 9f8a039

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

annotator/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def clean_game(game):
414414

415415
node.comment = None
416416
node.nags = []
417-
for variation in node.variations:
417+
for variation in reversed(node.variations):
418418
if not variation.is_main_variation():
419419
node.remove_variation(variation)
420420

0 commit comments

Comments
 (0)