From fdb5fb2599b987acc9a8d35d56ccbdb56d8f39fa Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Tue, 12 Apr 2016 11:26:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=AF=94=E8=B5=9B=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E6=8F=90=E4=BA=A4=E5=92=8C=E5=85=AC=E5=BC=80=E9=A2=98?= =?UTF-8?q?=E7=9B=AE=E6=8F=90=E4=BA=A4=E6=B7=B7=E4=B9=B1=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contest/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contest/views.py b/contest/views.py index 976530c0..654c218c 100644 --- a/contest/views.py +++ b/contest/views.py @@ -515,7 +515,7 @@ def contest_problem_my_submissions_list_page(request, contest_id, contest_proble contest_problem = ContestProblem.objects.get(id=contest_problem_id, visible=True) except ContestProblem.DoesNotExist: return error_page(request, u"比赛问题不存在") - submissions = Submission.objects.filter(user_id=request.user.id, problem_id=contest_problem.id). \ + submissions = Submission.objects.filter(user_id=request.user.id, problem_id=contest_problem.id, contest_id=contest_id). \ order_by("-create_time"). \ values("id", "result", "create_time", "accepted_answer_time", "language") return render(request, "oj/submission/problem_my_submissions_list.html",