Add option to only show total score in contest

This commit is contained in:
cuom1999 2020-10-26 15:46:42 -05:00
parent 26c277c612
commit eadd4f2ad3
25 changed files with 7849 additions and 5710 deletions

View file

@ -48,7 +48,7 @@ class DefaultContestFormat(BaseContestFormat):
format_data = (participation.format_data or {}).get(str(contest_problem.id))
if format_data:
return format_html(
u'<td class="{state}"><a href="{url}">{points}<div class="solving-time">{time}</div></a></td>',
u'<td class="{state} problem-score-col"><a href="{url}">{points}<div class="solving-time">{time}</div></a></td>',
state=(('pretest-' if self.contest.run_pretests_only and contest_problem.is_pretested else '') +
self.best_solution_state(format_data['points'], contest_problem.points)),
url=reverse('contest_user_submissions',
@ -57,7 +57,7 @@ class DefaultContestFormat(BaseContestFormat):
time=nice_repr(timedelta(seconds=format_data['time']), 'noday'),
)
else:
return mark_safe('<td></td>')
return mark_safe('<td class="problem-score-col"></td>')
def display_participation_result(self, participation):
return format_html(