core: hide contest scoreboard when not started

This commit is contained in:
undefined committed 2022-05-07 21:08:11 +08:00
1 parent 91f3b9070a
commit 116415707b
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "3.12.1", "version": "3.12.2",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "src/loader", "main": "src/loader",
"module": "src/loader", "module": "src/loader",
+2 -2
View File
@@ -50,7 +50,7 @@ const acm = buildContestRule({
check: () => { }, check: () => { },
statusSort: { accept: -1, time: 1 }, statusSort: { accept: -1, time: 1 },
submitAfterAccept: false, submitAfterAccept: false,
showScoreboard: () => true, showScoreboard: (tdoc, now) => now > tdoc.beginAt,
showSelfRecord: () => true, showSelfRecord: () => true,
showRecord: (tdoc, now) => now > tdoc.endAt, showRecord: (tdoc, now) => now > tdoc.endAt,
stat(tdoc, journal: AcmJournal[], ignoreLock = false) { stat(tdoc, journal: AcmJournal[], ignoreLock = false) {
@@ -297,7 +297,7 @@ const ioi = buildContestRule({
submitAfterAccept: false, submitAfterAccept: false,
showRecord: (tdoc, now) => now > tdoc.endAt, showRecord: (tdoc, now) => now > tdoc.endAt,
showSelfRecord: () => true, showSelfRecord: () => true,
showScoreboard: () => true, showScoreboard: (tdoc, now) => now > tdoc.beginAt,
}); });
const homework = buildContestRule({ const homework = buildContestRule({