From 9ba4b969fa8e4770b3cc530460fd38f405e254ac Mon Sep 17 00:00:00 2001 From: sylxjtu Date: Sun, 10 Dec 2017 16:41:09 +0800 Subject: [PATCH] =?UTF-8?q?CE=E4=B8=8D=E8=AE=A1=E5=85=A5=E7=BD=9A=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- judge/dispatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/dispatcher.py b/judge/dispatcher.py index 85894258..7ef91844 100644 --- a/judge/dispatcher.py +++ b/judge/dispatcher.py @@ -314,7 +314,7 @@ class JudgeDispatcher(DispatcherBase): if problem.accepted_number == 1: info["is_first_ac"] = True - else: + elif self.submission.result != JudgeStatus.COMPILE_ERROR: info["error_number"] += 1 # 第一次提交 @@ -330,7 +330,7 @@ class JudgeDispatcher(DispatcherBase): if problem.accepted_number == 1: info["is_first_ac"] = True - else: + elif self.submission.result != JudgeStatus.COMPILE_ERROR: info["error_number"] = 1 rank.submission_info[str(self.submission.problem_id)] = info rank.save()