Fix ranking bug IOI
This commit is contained in:
parent
415e5772d6
commit
5be07760ba
1 changed files with 16 additions and 13 deletions
|
@ -262,20 +262,23 @@
|
||||||
|
|
||||||
// get information
|
// get information
|
||||||
let problem = linkElements[linkElements.length - 2];
|
let problem = linkElements[linkElements.length - 2];
|
||||||
let score = parseFloat(scoreAndTime[0])
|
let score = parseFloat(scoreAndTime[0]);
|
||||||
let time = scoreAndTime[1]
|
let time = scoreAndTime[1];
|
||||||
|
console.log(time);
|
||||||
|
|
||||||
let curSubmission = {
|
if (time) {
|
||||||
'td': $(this).parent(),
|
let curSubmission = {
|
||||||
'score': score,
|
'td': $(this).parent(),
|
||||||
'time': time
|
'score': score,
|
||||||
}
|
'time': time
|
||||||
|
}
|
||||||
|
|
||||||
// update best submissions
|
// update best submissions
|
||||||
let curBest = bestSubmissions[problem]
|
let curBest = bestSubmissions[problem]
|
||||||
|
|
||||||
if (scoretimeComparison(curSubmission, curBest) && score) {
|
if (scoretimeComparison(curSubmission, curBest) && score) {
|
||||||
bestSubmissions[problem] = curSubmission;
|
bestSubmissions[problem] = curSubmission;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue