Skip to content

Commit

Permalink
Prevent to accept own seek by auto pair
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Dec 29, 2024
1 parent 850d128 commit 50d55d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/auto_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ def find_matching_seek(app_state, user, variant_tc):
and seek.byoyomi_period == byoyomi_period
and seek.color == "r"
and seek.fen == ""
and user != seek.creator
)
if user.auto_compatible_with_seek(seek_candidate)
),
Expand Down

0 comments on commit 50d55d3

Please sign in to comment.