rank页面不显示隐藏题目的信息

This commit is contained in:
uzi
2015-11-07 14:02:04 +08:00
parent 13526b109e
commit 1ede6edfa8

View File

@@ -424,7 +424,7 @@ def contest_list_page(request, page=1):
@check_user_contest_permission @check_user_contest_permission
def contest_rank_page(request, contest_id): def contest_rank_page(request, contest_id):
contest = Contest.objects.get(id=contest_id) contest = Contest.objects.get(id=contest_id)
contest_problems = ContestProblem.objects.filter(contest=contest).order_by("sort_index") contest_problems = ContestProblem.objects.filter(contest=contest, visible=True).order_by("sort_index")
r = get_cache_redis() r = get_cache_redis()
cache_key = str(contest_id) + "_rank_cache" cache_key = str(contest_id) + "_rank_cache"