Skip to content

Commit 0d56cb0

Browse files
authored
Update scoreboard to fit requirements (#312)
1 parent fca26a9 commit 0d56cb0

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scoreboard/main.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
</head>
3131
<body>
3232
<h1>Scoreboard</h1>
33+
<h3 style="color: red;">Note:</b> This is experimental and results are for reference only!</h3>
3334
<p>
3435
<b>(S)olution</b> - The correctness and completeness of the implemented solution.<br/>
3536
<b>(A)cceleration</b> - The process of speeding up software to improve performance.
@@ -41,19 +42,21 @@
4142
</p>
4243
<table>
4344
<tr>
44-
<th colspan=5>Tasks</th>
45+
<th rowspan=2>Tasks</th>
4546
{columns}
46-
<th>Total</th>
47+
<th rowspan=2>Total</th>
4748
</tr>
4849
<tr>
49-
<th colspan=5></th>
50-
{''.join(['<th>S</th><th>A</th><th>E</th><th>D</th><th>P</th>' for _ in range(len(task_types))])}
51-
<th></th>
50+
{''.join([
51+
f'<th style="text-align: center;">{letter}</th>'
52+
for _ in range(len(task_types))
53+
for letter in ('S', 'A', 'E', 'D', 'P')
54+
])}
5255
</tr>
5356
"""
5457

55-
for dir in directories:
56-
html_content += f"<tr><td colspan=5>{dir}</td>"
58+
for dir in sorted(directories.keys()):
59+
html_content += f"<tr><td>{dir}</td>"
5760
total_count = 0
5861
for task_type in task_types:
5962
if directories[dir].get(task_type) == "done":

0 commit comments

Comments
 (0)