mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-10 03:38:40 +00:00
fix(group/assignment): decimal score display
This commit is contained in:
parent
b13b035213
commit
aca69c941c
@ -63,9 +63,9 @@ UOJGroupAssignment::cur()->userCanView(['ensure' => true]);
|
|||||||
if ($submission) {
|
if ($submission) {
|
||||||
$row[2][] = [
|
$row[2][] = [
|
||||||
(int)$submission['id'],
|
(int)$submission['id'],
|
||||||
(int)$submission['score'],
|
UOJSubmission::roundedScore($submission['score']),
|
||||||
];
|
];
|
||||||
$row[0] += $submission['score'];
|
$row[0] = UOJSubmission::roundedScore($row[0] + $submission['score']);
|
||||||
} else {
|
} else {
|
||||||
$row[2][] = null;
|
$row[2][] = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user