mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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",
|
||||
"version": "2.28.22",
|
||||
"version": "2.28.23",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -377,9 +377,9 @@ const homework: ContestRule = {
|
||||
} else {
|
||||
row.push({
|
||||
type: 'record',
|
||||
score: colScore || 0,
|
||||
score: tsddict[pid]?.penaltyScore || 0,
|
||||
value: colScore === colOriginalScore
|
||||
? '{0}\n{2}'.format(colScore, colTimeStr)
|
||||
? '{0}\n{1}'.format(colScore, colTimeStr)
|
||||
: '{0} / {1}\n{2}'.format(colScore, colOriginalScore, colTimeStr),
|
||||
raw: rid,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user