From 0f7e2cfdea5c0d06c2d835b7b964fba9aa4be444 Mon Sep 17 00:00:00 2001 From: undefined Date: Thu, 14 Dec 2023 17:59:59 +0800 Subject: [PATCH] core: fix ledo scoreboard --- packages/hydrooj/src/model/contest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hydrooj/src/model/contest.ts b/packages/hydrooj/src/model/contest.ts index de0626b2b..afaa39db6 100644 --- a/packages/hydrooj/src/model/contest.ts +++ b/packages/hydrooj/src/model/contest.ts @@ -554,7 +554,7 @@ const ledo = buildContestRule({ for (const pid of tdoc.pids) { row.push({ type: 'record', - value: tsddict[pid]?.penaltyScore || '', + value: tsddict[pid]?.penaltyScore?.toString() || '', hover: tsddict[pid]?.ntry ? `-${tsddict[pid].ntry} (${Math.round(Math.max(0.7, 0.95 ** tsddict[pid].ntry) * 100)}%)` : '', raw: tsddict[pid]?.rid, style: tsddict[pid]?.status === STATUS.STATUS_ACCEPTED && tsddict[pid]?.rid.getTimestamp().getTime() === meta?.first?.[pid]