Atcoder's total score only

This commit is contained in:
cuom1999 2020-10-26 15:52:32 -05:00
parent eadd4f2ad3
commit c44009be1a

View file

@ -100,7 +100,7 @@ class AtCoderContestFormat(DefaultContestFormat):
penalty = format_html('<small style="color:red"> ({penalty})</small>', penalty = format_html('<small style="color:red"> ({penalty})</small>',
penalty=floatformat(format_data['penalty'])) if format_data['penalty'] else '' penalty=floatformat(format_data['penalty'])) if format_data['penalty'] else ''
return format_html( return format_html(
'<td class="{state}"><a href="{url}">{points}{penalty}<div class="solving-time">{time}</div></a></td>', '<td class="{state} problem-score-col"><a href="{url}">{points}{penalty}<div class="solving-time">{time}</div></a></td>',
state=(('pretest-' if self.contest.run_pretests_only and contest_problem.is_pretested else '') + state=(('pretest-' if self.contest.run_pretests_only and contest_problem.is_pretested else '') +
self.best_solution_state(format_data['points'], contest_problem.points)), self.best_solution_state(format_data['points'], contest_problem.points)),
url=reverse('contest_user_submissions', url=reverse('contest_user_submissions',
@ -110,4 +110,4 @@ class AtCoderContestFormat(DefaultContestFormat):
time=nice_repr(timedelta(seconds=format_data['time']), 'noday'), time=nice_repr(timedelta(seconds=format_data['time']), 'noday'),
) )
else: else:
return mark_safe('<td></td>') return mark_safe('<td class="problem-score-col"></td>')