Skip to content

Commit 44e6a95

Browse files
committed
Fix bugs
1 parent 9f0157b commit 44e6a95

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cms/server/contest/submission/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def is_last_minutes(timestamp: datetime, participation: Participation):
221221
return False
222222

223223
if participation.contest.per_user_time is None:
224-
end_time = participation.contest.stop
224+
end_time = participation.group.stop
225225
else:
226226
end_time = participation.starting_time + participation.contest.per_user_time
227227

cms/server/contest/templates/contest_list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h3>{% trans %}Choose a contest{% endtrans %}</h3>
88
<ul class="nav nav-list">
99
{% for c_name, c_iter in contest_list|dictsort(by="key") %}
1010
<li>
11-
<a {% if c_iter.stop < now %} style="color: #adadad" {% endif %} href="{{ url(c_iter.name) }}">{{ c_iter.description }}</a>
11+
<a {% if c_iter.main_group and c_iter.main_group.stop < now %} style="color: #adadad" {% endif %} href="{{ url(c_iter.name) }}">{{ c_iter.description }}</a>
1212
</li>
1313
{% endfor %}
1414
</ul>

0 commit comments

Comments
 (0)