mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
CE不计入罚时
This commit is contained in:
parent
10ecb79152
commit
9ba4b969fa
@ -314,7 +314,7 @@ class JudgeDispatcher(DispatcherBase):
|
|||||||
|
|
||||||
if problem.accepted_number == 1:
|
if problem.accepted_number == 1:
|
||||||
info["is_first_ac"] = True
|
info["is_first_ac"] = True
|
||||||
else:
|
elif self.submission.result != JudgeStatus.COMPILE_ERROR:
|
||||||
info["error_number"] += 1
|
info["error_number"] += 1
|
||||||
|
|
||||||
# 第一次提交
|
# 第一次提交
|
||||||
@ -330,7 +330,7 @@ class JudgeDispatcher(DispatcherBase):
|
|||||||
if problem.accepted_number == 1:
|
if problem.accepted_number == 1:
|
||||||
info["is_first_ac"] = True
|
info["is_first_ac"] = True
|
||||||
|
|
||||||
else:
|
elif self.submission.result != JudgeStatus.COMPILE_ERROR:
|
||||||
info["error_number"] = 1
|
info["error_number"] = 1
|
||||||
rank.submission_info[str(self.submission.problem_id)] = info
|
rank.submission_info[str(self.submission.problem_id)] = info
|
||||||
rank.save()
|
rank.save()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user