Skip to content

Commit

Permalink
Temporary disable contest stats page (#410)
Browse files Browse the repository at this point in the history
For some reason this page cause the mysql to hang
leduythuccs authored Oct 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 50f7271 commit fcfd359
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion dmoj/urls.py
Original file line number Diff line number Diff line change
@@ -246,7 +246,7 @@ def paged_list_view(view, name):
path('/register', contests.ContestRegister.as_view(), name='contest_register'),
path('/join', contests.ContestJoin.as_view(), name='contest_join'),
path('/leave', contests.ContestLeave.as_view(), name='contest_leave'),
path('/stats', contests.ContestStats.as_view(), name='contest_stats'),
# path('/stats', contests.ContestStats.as_view(), name='contest_stats'),
path('/data/prepare/', contests.ContestPrepareData.as_view(), name='contest_prepare_data'),
path('/data/download/', contests.ContestDownloadData.as_view(), name='contest_download_data'),

3 changes: 0 additions & 3 deletions templates/contest/contest-tabs.html
Original file line number Diff line number Diff line change
@@ -2,9 +2,6 @@

{% block tabs %}
{{ make_tab('detail', 'fa-info-circle', url('contest_view', contest.key), _('Info')) }}
{% if contest.can_see_full_submission_list(request.user) %}
{{ make_tab('stats', 'fa-pie-chart', url('contest_stats', contest.key), _('Statistics')) }}
{% endif %}

{% if contest.start_time <= now or perms.judge.see_private_contest %}
{% if contest.can_see_own_scoreboard(request.user) %}

0 comments on commit fcfd359

Please sign in to comment.