Skip to content

Commit 0606678

Browse files
committed
Adjust scoreboard columns
Address scoreboard comments from #295
1 parent fe0f7b5 commit 0606678

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

scoreboard/main.py

+17-7
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
print(directories)
2121

22-
columns = ''.join(['<th colspan=4 style="text-align: center;">' + task_type + '</th>' for task_type in task_types])
22+
columns = ''.join(['<th colspan=5 style="text-align: center;">' + task_type + '</th>' for task_type in task_types])
2323
html_content = f"""
2424
<!DOCTYPE html>
2525
<html>
@@ -29,22 +29,31 @@
2929
</head>
3030
<body>
3131
<h1>Scoreboard</h1>
32-
<p>S - Solution, P - Performance, O - Overdue, C - Cheating</p>
32+
<p>
33+
<b>(S)olution</b> - The correctness and completeness of the implemented solution.<br/>
34+
<b>(C)ompilation</b> - The ability of the code to compile successfully without errors.<br/>
35+
<b>(A)cceleration</b> - The process of speeding up software to improve performance.
36+
Speedup = T(seq) / T(parallel)<br/>
37+
<b>(E)fficiency</b> - Optimizing software speed-up by improving CPU utilization and resource management.
38+
Efficiency = Speedup / NumProcs * 100%<br/>
39+
<b>(D)eadline</b> - The timeliness of the submission in relation to the given deadline.<br/>
40+
<b>(P)lagiarism</b> - The originality of the work, ensuring no copied content from external sources.<br/>
41+
</p>
3342
<table>
3443
<tr>
35-
<th colspan=4>Tasks</th>
44+
<th colspan=5>Tasks</th>
3645
{columns}
3746
<th>Total</th>
3847
</tr>
3948
<tr>
40-
<th colspan=4></th>
41-
{''.join(['<th>S</th><th>P</th><th>O</th><th>C</th>' for _ in range(len(task_types))])}
49+
<th colspan=5></th>
50+
{''.join(['<th>S</th><th>A/C</th><th>E</th><th>D</th><th>P</th>' for _ in range(len(task_types))])}
4251
<th></th>
4352
</tr>
4453
"""
4554

4655
for dir in directories:
47-
html_content += f"<tr><td colspan=4>{dir}</td>"
56+
html_content += f"<tr><td colspan=5>{dir}</td>"
4857
total_count = 0
4958
for task_type in task_types:
5059
if directories[dir].get(task_type) == "done":
@@ -54,7 +63,8 @@
5463
html_content += '<td style="text-align: center;background-color: lightblue;">1</td>'
5564
total_count += 1
5665
else:
57-
html_content += "<td>0</td>"
66+
html_content += '<td style="text-align: center;">0</td>'
67+
html_content += '<td style="text-align: center;">0</td>'
5868
html_content += '<td style="text-align: center;">0</td>'
5969
html_content += '<td style="text-align: center;">0</td>'
6070
html_content += '<td style="text-align: center;">0</td>'

0 commit comments

Comments
 (0)