Skip to content

Commit ec8b33b

Browse files
Fix displaying too late submissions when submitting exactly at the end time of a contest
1 parent 4398ae5 commit ec8b33b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webapp/templates/team/partials/submission_list.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
</td>
5252
<td>
5353
<a data-ajax-modal data-ajax-modal-after="markSeen" {% if link %}href="{{ link }}"{% endif %}>
54-
{%- if submission.submittime > submission.contest.endtime %}
55-
{{ 'too-late' | printResult }}
54+
{%- if submission.submittime >= submission.contest.endtime %}
55+
{{ 'too-late' | printResult }}
5656
{%- endif %}
57-
{%- if submission.submittime <= submission.contest.endtime or showTooLateResult %}
58-
{%- if submission.submittime > submission.contest.endtime %}
57+
{%- if submission.submittime < submission.contest.endtime or showTooLateResult %}
58+
{%- if submission.submittime >= submission.contest.endtime %}
5959
/
6060
{% endif %}
6161
{%- if submission.judgings.first is empty or submission.judgings.first.result is empty %}

0 commit comments

Comments
 (0)