Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit a51833f

Browse files
committed
Fixed bug with wrong color in ioi_finish_ui
1 parent d41208b commit a51833f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

python/uis/ioi_finish_ui.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ def _print_generation(self):
5454
int(self.task.subtasks[st_num].max_score)))
5555
subtask_info = self.task.subtasks[st_num]
5656
if subtask_info.name:
57-
self.printer.text(" [{}]".format(
58-
subtask_info.name))
57+
self.printer.text(" [{}]".format(subtask_info.name))
5958
self.printer.text("\n")
6059
if subtask_info.description:
6160
self.printer.text(subtask_info.description + "\n")
@@ -108,8 +107,10 @@ def _print_solution(self, solution: str):
108107
self.printer.text(": ")
109108
status = self.interface.testing[solution]
110109
max_score = sum(st.max_score for st in self.task.subtasks.values())
111-
self._print_score(status.score, max_score,
112-
status.subtask_scores.values())
110+
self._print_score(status.score, max_score, [
111+
tc.score for st in status.testcase_results.values()
112+
for tc in st.values()
113+
])
113114
self.printer.text("\n")
114115
if self.interface.solutions[
115116
solution].status == SourceFileCompilationStatus.FAILURE:

0 commit comments

Comments
 (0)