fix(group/assignment): decimal score display

This commit is contained in:
Baoshuo Ren 2023-02-04 18:30:11 +08:00
parent b13b035213
commit aca69c941c
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -63,9 +63,9 @@ UOJGroupAssignment::cur()->userCanView(['ensure' => true]);
if ($submission) {
$row[2][] = [
(int)$submission['id'],
(int)$submission['score'],
UOJSubmission::roundedScore($submission['score']),
];
$row[0] += $submission['score'];
$row[0] = UOJSubmission::roundedScore($row[0] + $submission['score']);
} else {
$row[2][] = null;
}