CE不计入罚时

This commit is contained in:
sylxjtu 2017-12-10 16:41:09 +08:00 committed by GitHub
parent 10ecb79152
commit 9ba4b969fa
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()