Skip to content

Commit

Permalink
Temporary disable contest stats page
Browse files Browse the repository at this point in the history
For some reason this page cause the mysql to hang
  • Loading branch information
leduythuccs committed Oct 2, 2024
1 parent 50f7271 commit 2682ad7
Show file tree
Hide file tree
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
Expand Up @@ -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'),

Expand Down
3 changes: 0 additions & 3 deletions templates/contest/contest-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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) %}
Expand Down

0 comments on commit 2682ad7

Please sign in to comment.