Skip to content

Commit daaa590

Browse files
committed
nit
1 parent cf1a29a commit daaa590

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

codeclash/analysis/metrics/elo2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def _process_tournament(self, metadata_path: Path) -> None:
215215
def build(self, log_dir: Path) -> None:
216216
for metadata_path in tqdm(list(log_dir.rglob("metadata.json"))):
217217
try:
218+
if ".human." in str(metadata_path):
219+
continue
218220
self._process_tournament(metadata_path)
219221
except Exception as e:
220222
logger.error(f"Error processing {metadata_path}: {e}", exc_info=True)
@@ -1383,7 +1385,7 @@ def write_website_results(results: dict[str, dict], output_dir: Path) -> None:
13831385
entry["elo_std"] = int(round(elo_std[player_idx]))
13841386
board.append(entry)
13851387

1386-
leaderboard[game_name] = {
1388+
leaderboard[game_name.lower()] = {
13871389
"board": board,
13881390
"last_updated": datetime.utcnow().isoformat() + "Z",
13891391
}

0 commit comments

Comments
 (0)