Merge pull request #103 from xjtuacm/master

ACM赛制中CE不计入罚时
This commit is contained in:
zema1 2017-12-11 09:22:11 +08:00 committed by GitHub
commit 2b18d619ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()