Skip to content

Commit 0bb9995

Browse files
authored
Fix scoreboard generation after refactoring (#495)
1 parent 4ec6915 commit 0bb9995

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

scoreboard/main.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@
99

1010
directories = defaultdict(dict)
1111

12-
for task_type in task_types:
13-
task_type_dir = tasks_dir / task_type
14-
if task_type_dir.exists() and task_type_dir.is_dir():
15-
for task_name in (d.name for d in task_type_dir.iterdir() if d.is_dir()):
16-
if task_name.endswith("_disabled"):
17-
task_name = task_name[:-len("_disabled")]
18-
directories[task_name][task_type] = "disabled"
19-
else:
20-
directories[task_name][task_type] = "done"
12+
if tasks_dir.exists() and tasks_dir.is_dir():
13+
for task_name_dir in tasks_dir.iterdir():
14+
if task_name_dir.is_dir() and task_name_dir.name not in ['common']:
15+
task_name = task_name_dir.name
16+
for task_type in task_types:
17+
task_type_dir = task_name_dir / task_type
18+
if task_type_dir.exists() and task_type_dir.is_dir():
19+
if task_name.endswith("_disabled"):
20+
clean_task_name = task_name[:-len("_disabled")]
21+
directories[clean_task_name][task_type] = "disabled"
22+
else:
23+
directories[task_name][task_type] = "done"
2124

2225
config_path = Path(__file__).parent / "data" / "threads-config.yml"
2326
assert config_path.exists(), f"Config file not found: {config_path}"

0 commit comments

Comments
 (0)