core: bug fix

pull/300/head
undefined 3 years ago
parent e67ff511bb
commit 599a45e106

@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "3.4.0",
"version": "3.4.1",
"bin": "bin/hydrooj.js",
"main": "src/loader",
"module": "src/loader",

@ -136,7 +136,7 @@ const acm = buildContestRule({
const rows: ScoreboardRow[] = [columns];
for (const [rank, tsdoc] of rankedTsdocs) {
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 = [
{ type: 'string', value: rank.toString() },
{ type: 'user', value: udict[tsdoc.uid].uname, raw: tsdoc.uid },
@ -147,6 +147,7 @@ const acm = buildContestRule({
row.push(
{ type: 'string', value: penalty.toString() },
{ type: 'string', value: tsdoc.time || 0.0 },
{ type: 'string', value: tsdoc.time || 0.0 },
);
}
for (const pid of tdoc.pids) {

@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.30.10",
"version": "4.30.11",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",

@ -11,7 +11,7 @@
text-align: center
.col--problem_detail
width: rem(80px)
width: rem(100px)
border-left: 1px solid $table-border-color
text-align: center

Loading…
Cancel
Save