Skip to content

Commit

Permalink
Minor speed up in load_game_bug()
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Dec 28, 2024
1 parent cc31dcd commit 3e5ad4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/bug/utils_bug.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async def load_game_bug(app_state: PychessGlobalAppState, game_id):

if board_name == "a":
game.checkA = game.boards[board_name].is_checked()
if board_name == "b":
else:
game.checkB = game.boards[board_name].is_checked()

# turnColor = "black" if game.board.color == BLACK else "white" todo: should i use board at all here? i mean adding a second one - maybe for fen ahd and check - but still can happen on client as well
Expand Down

0 comments on commit 3e5ad4f

Please sign in to comment.