From 8dfcbb0000b6275a0fd8d0270a67b1d65f54051b Mon Sep 17 00:00:00 2001 From: Viren6 <94880762+Viren6@users.noreply.github.com> Date: Sat, 17 Aug 2024 07:25:57 +0100 Subject: [PATCH] Fix cutechess command The cutechess command in games.py is incorrectly formatted causing a bug where the pgn haa all games with the tag ["Round 1"] . This is first spotted by @Disservin This change is also necessary for an eventual fast-chess migration as fast-chess relies on the correct format. Co-Authored-By: Gahtan Nahdi <155860115+gahtan-syarif@users.noreply.github.com> --- server/montytest/api.py | 2 +- worker/games.py | 4 +++- worker/sri.txt | 2 +- worker/worker.py | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/server/montytest/api.py b/server/montytest/api.py index 0535d843..47f5258a 100644 --- a/server/montytest/api.py +++ b/server/montytest/api.py @@ -34,7 +34,7 @@ according to the route/URL mapping defined in `__init__.py`. """ -WORKER_VERSION = 13 +WORKER_VERSION = 14 @exception_view_config(HTTPException) diff --git a/worker/games.py b/worker/games.py index 5a7c7928..fc1edae0 100644 --- a/worker/games.py +++ b/worker/games.py @@ -1314,7 +1314,9 @@ def make_player(arg): "-recover", "-repeat", "-games", - str(int(games_to_play)), + "2", + "-rounds", + str(int(games_to_play) // 2), "-tournament", "gauntlet", ] diff --git a/worker/sri.txt b/worker/sri.txt index c4dbe851..34bdc3d2 100644 --- a/worker/sri.txt +++ b/worker/sri.txt @@ -1 +1 @@ -{"__version": 13, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "uVromGofhQlR48OuE0888er18zXYIl9PC/ZB3KfyXxt2HtGLdPYD/sf4EisgEM1h", "games.py": "s975siTd3V1skmbLJ63EXAHivJp3GLzPtMESJ6G3gBEWolr0/iTCZXHwfGZ5dfL+"} +{"__version": 14, "updater.py": "gSJX/HbsPwsZnUZaFbAgF0zwWPWXv+LEw9jBhJkxFOrCH9CZS0+4U4nE2fJdeNze", "worker.py": "StfmRgS7N/I5sXJtWsmQ9ffLtY+JJJv5nr291dWIjfA+WeJiMAVpcNUc/GN2k0Zt", "games.py": "/IKLOrxmOTyK+T4WzMdHzNvFzm4cJPzM8LeQ5sHyidDdrwOq6VTXkpIUSoENfZTE"} diff --git a/worker/worker.py b/worker/worker.py index 12fa4668..1e390161 100644 --- a/worker/worker.py +++ b/worker/worker.py @@ -65,7 +65,7 @@ MIN_CARGO_MAJOR = 1 MIN_CARGO_MINOR = 77 -WORKER_VERSION = 13 +WORKER_VERSION = 14 FILE_LIST = ["updater.py", "worker.py", "games.py"] HTTP_TIMEOUT = 30.0 INITIAL_RETRY_TIME = 15.0