mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix homework scoreboard display
This commit is contained in:
1 parent
04b005b825
commit
52fcfdb665
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.28.22",
|
"version": "2.28.23",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -377,9 +377,9 @@ const homework: ContestRule = {
|
|||||||
} else {
|
} else {
|
||||||
row.push({
|
row.push({
|
||||||
type: 'record',
|
type: 'record',
|
||||||
score: colScore || 0,
|
score: tsddict[pid]?.penaltyScore || 0,
|
||||||
value: colScore === colOriginalScore
|
value: colScore === colOriginalScore
|
||||||
? '{0}\n{2}'.format(colScore, colTimeStr)
|
? '{0}\n{1}'.format(colScore, colTimeStr)
|
||||||
: '{0} / {1}\n{2}'.format(colScore, colOriginalScore, colTimeStr),
|
: '{0} / {1}\n{2}'.format(colScore, colOriginalScore, colTimeStr),
|
||||||
raw: rid,
|
raw: rid,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user