Skip to content

Commit

Permalink
Remove DEV auto pairing chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Dec 29, 2024
1 parent 4eeb58a commit 850d128
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions server/wsl.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations
import asyncio
import logging
from time import time

import aiohttp_session
from aiohttp import web
Expand All @@ -26,7 +25,6 @@
from misc import server_state
from newid import new_id
from const import TYPE_CHECKING
from settings import DEV

if TYPE_CHECKING:
from pychess_global_app_state import PychessGlobalAppState
Expand Down Expand Up @@ -373,27 +371,12 @@ async def handle_cancel_auto_pairing(app_state, ws, user, data):

await app_state.lobby.lobby_broadcast_ap_cnt()

if DEV:
msg = "Auto pairing cancelled."
await app_state.lobby.lobby_chat("server", "%s: %s" % (user.username, msg), int(time()))


async def handle_create_auto_pairing(app_state, ws, user, data):
no = await send_game_in_progress_if_any(app_state, user, ws)
if no:
return

if DEV:
variants = ",".join((v[0] + ("960" if v[1] else "") for v in data["variants"]))
msg = "%s: %s %s %s %s" % (
user.username,
variants,
data["tcs"],
data["rrmin"],
data["rrmax"],
)
await app_state.lobby.lobby_chat("server", msg, int(time()))

auto_variant_tc, matching_user, matching_seek = add_to_auto_pairings(app_state, user, data)

auto_paired = False
Expand Down

0 comments on commit 850d128

Please sign in to comment.