Fix ranking bug IOI
This commit is contained in:
parent
415e5772d6
commit
5be07760ba
1 changed files with 16 additions and 13 deletions
|
@ -262,9 +262,11 @@
|
||||||
|
|
||||||
// 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);
|
||||||
|
|
||||||
|
if (time) {
|
||||||
let curSubmission = {
|
let curSubmission = {
|
||||||
'td': $(this).parent(),
|
'td': $(this).parent(),
|
||||||
'score': score,
|
'score': score,
|
||||||
|
@ -278,6 +280,7 @@
|
||||||
bestSubmissions[problem] = curSubmission;
|
bestSubmissions[problem] = curSubmission;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
for (let problem in bestSubmissions) {
|
for (let problem in bestSubmissions) {
|
||||||
bestSubmissions[problem]['td'].addClass('first-solve')
|
bestSubmissions[problem]['td'].addClass('first-solve')
|
||||||
|
|
Loading…
Reference in a new issue