mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: bug fix
This commit is contained in:
1 parent
e67ff511bb
commit
599a45e106
4 files changed
+5
-4
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "3.4.0",
|
"version": "3.4.1",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "src/loader",
|
"main": "src/loader",
|
||||||
"module": "src/loader",
|
"module": "src/loader",
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ const acm = buildContestRule({
|
|||||||
const rows: ScoreboardRow[] = [columns];
|
const rows: ScoreboardRow[] = [columns];
|
||||||
for (const [rank, tsdoc] of rankedTsdocs) {
|
for (const [rank, tsdoc] of rankedTsdocs) {
|
||||||
const tsddict: Record<number, AcmDetail> = {};
|
const tsddict: Record<number, AcmDetail> = {};
|
||||||
for (const item of tsdoc.detail) tsddict[item.pid] = item;
|
for (const item of tsdoc.detail || []) tsddict[item.pid] = item;
|
||||||
const row: ScoreboardRow = [
|
const row: ScoreboardRow = [
|
||||||
{ type: 'string', value: rank.toString() },
|
{ type: 'string', value: rank.toString() },
|
||||||
{ type: 'user', value: udict[tsdoc.uid].uname, raw: tsdoc.uid },
|
{ type: 'user', value: udict[tsdoc.uid].uname, raw: tsdoc.uid },
|
||||||
@@ -147,6 +147,7 @@ const acm = buildContestRule({
|
|||||||
row.push(
|
row.push(
|
||||||
{ type: 'string', value: penalty.toString() },
|
{ type: 'string', value: penalty.toString() },
|
||||||
{ type: 'string', value: tsdoc.time || 0.0 },
|
{ type: 'string', value: tsdoc.time || 0.0 },
|
||||||
|
{ type: 'string', value: tsdoc.time || 0.0 },
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for (const pid of tdoc.pids) {
|
for (const pid of tdoc.pids) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.30.10",
|
"version": "4.30.11",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
.col--problem_detail
|
.col--problem_detail
|
||||||
width: rem(80px)
|
width: rem(100px)
|
||||||
border-left: 1px solid $table-border-color
|
border-left: 1px solid $table-border-color
|
||||||
text-align: center
|
text-align: center
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user