core: scoreboard: bug fix

This commit is contained in:
undefined committed 2022-10-18 19:32:20 +08:00
1 parent 4112de34c6
commit f68b8d54cf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "4.2.0",
"version": "4.2.1",
"bin": "bin/hydrooj.js",
"main": "src/plugin-api",
"module": "src/plugin-api",
+1 -1
View File
@@ -429,7 +429,7 @@ const homework = buildContestRule({
return columns;
},
async scoreboardRow(isExport, _, tdoc, pdict, udoc, rank, tsdoc) {
const tsddict = tsdoc.detail;
const tsddict = tsdoc.detail || {};
const row: ScoreboardRow = [
{ type: 'rank', value: rank.toString() },
{