core: hide contest scoreboard when not started

pull/355/head
undefined 2 years ago
parent 91f3b9070a
commit 116415707b

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

@ -50,7 +50,7 @@ const acm = buildContestRule({
check: () => { },
statusSort: { accept: -1, time: 1 },
submitAfterAccept: false,
showScoreboard: () => true,
showScoreboard: (tdoc, now) => now > tdoc.beginAt,
showSelfRecord: () => true,
showRecord: (tdoc, now) => now > tdoc.endAt,
stat(tdoc, journal: AcmJournal[], ignoreLock = false) {
@ -297,7 +297,7 @@ const ioi = buildContestRule({
submitAfterAccept: false,
showRecord: (tdoc, now) => now > tdoc.endAt,
showSelfRecord: () => true,
showScoreboard: () => true,
showScoreboard: (tdoc, now) => now > tdoc.beginAt,
});
const homework = buildContestRule({

Loading…
Cancel
Save