Skip to content

Commit f48b1dd

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

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

scoreboard/main.py

+16-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,30 @@
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>(A)cceleration</b> - The process of speeding up software to improve performance.
35+
Speedup = T(seq) / T(parallel)<br/>
36+
<b>(E)fficiency</b> - Optimizing software speed-up by improving CPU utilization and resource management.
37+
Efficiency = Speedup / NumProcs * 100%<br/>
38+
<b>(D)eadline</b> - The timeliness of the submission in relation to the given deadline.<br/>
39+
<b>(P)lagiarism</b> - The originality of the work, ensuring no copied content from external sources.<br/>
40+
</p>
3341
<table>
3442
<tr>
35-
<th colspan=4>Tasks</th>
43+
<th colspan=5>Tasks</th>
3644
{columns}
3745
<th>Total</th>
3846
</tr>
3947
<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))])}
48+
<th colspan=5></th>
49+
{''.join(['<th>S</th><th>A</th><th>E</th><th>D</th><th>P</th>' for _ in range(len(task_types))])}
4250
<th></th>
4351
</tr>
4452
"""
4553

4654
for dir in directories:
47-
html_content += f"<tr><td colspan=4>{dir}</td>"
55+
html_content += f"<tr><td colspan=5>{dir}</td>"
4856
total_count = 0
4957
for task_type in task_types:
5058
if directories[dir].get(task_type) == "done":
@@ -54,7 +62,8 @@
5462
html_content += '<td style="text-align: center;background-color: lightblue;">1</td>'
5563
total_count += 1
5664
else:
57-
html_content += "<td>0</td>"
65+
html_content += '<td style="text-align: center;">0</td>'
66+
html_content += '<td style="text-align: center;">0</td>'
5867
html_content += '<td style="text-align: center;">0</td>'
5968
html_content += '<td style="text-align: center;">0</td>'
6069
html_content += '<td style="text-align: center;">0</td>'

0 commit comments

Comments
 (0)