Skip to content

Commit

Permalink
Fix cutechess command
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Viren6 and gahtan-syarif committed Aug 17, 2024
1 parent 2026772 commit 8dfcbb0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/montytest/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
according to the route/URL mapping defined in `__init__.py`.
"""

WORKER_VERSION = 13
WORKER_VERSION = 14


@exception_view_config(HTTPException)
Expand Down
4 changes: 3 additions & 1 deletion worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -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"}
2 changes: 1 addition & 1 deletion worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dfcbb0

Please sign in to comment.