From c2ea6159422dc4a644faf51f1160dba29d37fae9 Mon Sep 17 00:00:00 2001 From: Pisces000221 <1786762946@qq.com> Date: Fri, 29 Dec 2017 23:38:40 +0800 Subject: [PATCH] Hotfix, dumb mistake > < --- models/contest_ranklist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/contest_ranklist.js b/models/contest_ranklist.js index 2689238..09970dd 100644 --- a/models/contest_ranklist.js +++ b/models/contest_ranklist.js @@ -70,9 +70,9 @@ class ContestRanklist extends Model { if (contest.type === 'noi' || contest.type === 'ioi') { for (let player of players) { player.latest = 0; - for (let i in player.score_details) { - player.score = 0; + player.score = 0; + for (let i in player.score_details) { let judge_state = await JudgeState.fromID(player.score_details[i].judge_id); player.latest = Math.max(player.latest, judge_state.submit_time);