Skip to content

Commit 0a759de

Browse files
authored
[scoreboard] Add light green background for solved tasks, lavender background for efficiency cells (#358)
1 parent 4a07ee9 commit 0a759de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scoreboard/main.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@
7171
max_sol_points = int(cfg["scoreboard"]["task"][task_type]["solution"]["max"])
7272
task_count = 0
7373
if directories[dir].get(task_type) == "done":
74-
html_content += f'<td style="text-align: center;">{max_sol_points}</td>'
74+
html_content += f'<td style="text-align: center;background-color: lightgreen;">{max_sol_points}</td>'
7575
task_count += max_sol_points
7676
elif directories[dir].get(task_type) == "disabled":
7777
html_content += f'<td style="text-align: center;background-color: lightblue;">{max_sol_points}</td>'
7878
task_count += max_sol_points
7979
else:
8080
html_content += '<td style="text-align: center;">0</td>'
81-
html_content += '<td style="text-align: center;">0</td>'
82-
html_content += '<td style="text-align: center;">0</td>'
81+
html_content += '<td style="text-align: center;background-color: lavender;">0</td>'
82+
html_content += '<td style="text-align: center;background-color: lavender;">0</td>'
8383
html_content += '<td style="text-align: center;">0</td>'
8484
is_cheated = \
8585
dir in plagiarism_cfg["plagiarism"][task_type] or \

0 commit comments

Comments
 (0)