Skip to content

Commit 4c00143

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

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Diff for: scoreboard/main.py

+13-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,27 @@
2929
</head>
3030
<body>
3131
<h1>Scoreboard</h1>
32-
<p>S - Solution, P - Performance, O - Overdue, C - Cheating</p>
32+
<p><b>(S)olution</b> - The correctness and completeness of the implemented solution.</p>
33+
<p><b>(C)ompilation</b> - The ability of the code to compile successfully without errors.</p>
34+
<p><b>(A)cceleration</b> - The process of speeding up software to improve performance. Speedup = T(seq) / T(parallel)</p>
35+
<p><b>(E)fficiency</b> - Optimizing software speed-up by improving CPU utilization and resource management. Efficiency = Speedup / NumProcs * 100%</p>
36+
<p><b>(D)eadline</b> - The timeliness of the submission in relation to the given deadline.</p>
37+
<p><b>(P)lagiarism</b> - The originality of the work, ensuring no copied content from external sources.</p>
3338
<table>
3439
<tr>
35-
<th colspan=4>Tasks</th>
40+
<th colspan=5>Tasks</th>
3641
{columns}
3742
<th>Total</th>
3843
</tr>
3944
<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))])}
45+
<th colspan=5></th>
46+
{''.join(['<th>S</th><th>A/C</th><th>E</th><th>D</th><th>P</th>' for _ in range(len(task_types))])}
4247
<th></th>
4348
</tr>
4449
"""
4550

4651
for dir in directories:
47-
html_content += f"<tr><td colspan=4>{dir}</td>"
52+
html_content += f"<tr><td colspan=5>{dir}</td>"
4853
total_count = 0
4954
for task_type in task_types:
5055
if directories[dir].get(task_type) == "done":
@@ -54,7 +59,8 @@
5459
html_content += '<td style="text-align: center;background-color: lightblue;">1</td>'
5560
total_count += 1
5661
else:
57-
html_content += "<td>0</td>"
62+
html_content += '<td style="text-align: center;">0</td>'
63+
html_content += '<td style="text-align: center;">0</td>'
5864
html_content += '<td style="text-align: center;">0</td>'
5965
html_content += '<td style="text-align: center;">0</td>'
6066
html_content += '<td style="text-align: center;">0</td>'

0 commit comments

Comments
 (0)