Skip to content

Commit b70ac99

Browse files
committed
Fix(viewer): Extract rounds from tournament key, not game
1 parent 76ae557 commit b70ac99

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

codeclash/viewer/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_round_count_from_metadata(log_dir: Path) -> int | None:
3636

3737
try:
3838
metadata = json.loads(metadata_file.read_text())
39-
return metadata.get("config", {}).get("game", {}).get("rounds")
39+
return metadata.get("config", {}).get("tournament", {}).get("rounds")
4040
except (json.JSONDecodeError, KeyError):
4141
return None
4242

0 commit comments

Comments
 (0)