From 34e084b1afd6d52483f081a80c7ac9e61b428c6b Mon Sep 17 00:00:00 2001 From: Menci Date: Mon, 3 Jul 2017 19:41:30 +0800 Subject: [PATCH] Fix rejudge a AC submission to non-AC cause link to submission 0 in ACM contest --- models/contest_player.js | 1 + 1 file changed, 1 insertion(+) diff --git a/models/contest_player.js b/models/contest_player.js index 09480f9..044e23b 100644 --- a/models/contest_player.js +++ b/models/contest_player.js @@ -139,6 +139,7 @@ class ContestPlayer extends Model { this.score_details[judge_state.problem_id].unacceptedCount = 0; this.score_details[judge_state.problem_id].judge_id = 0; + this.score_details[judge_state.problem_id].accepted = 0; for (let x of arr) { if (x.accepted) { this.score_details[judge_state.problem_id].accepted = true;