core: fix homework scoreboard does not display 0 score (#424)

This commit is contained in:
guke1024 authored and GitHub committed 2022-09-01 09:35:17 +08:00
1 parent b837ae604a
commit 316d9d5342
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -408,8 +408,8 @@ const homework = buildContestRule({
row.push({ type: 'time', value: formatSeconds(tsdoc.time || 0, false), raw: tsdoc.time });
for (const pid of tdoc.pids) {
const rid = tsddict[pid]?.rid;
const colScore = tsddict[pid]?.penaltyScore || '';
const colOriginalScore = tsddict[pid]?.score || '';
const colScore = tsddict[pid]?.penaltyScore ?? '';
const colOriginalScore = tsddict[pid]?.score ?? '';
const colTime = tsddict[pid]?.time || '';
const colTimeStr = colTime ? formatSeconds(colTime, false) : '';
if (isExport) {