mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: hide contest scoreboard when not started
This commit is contained in:
1 parent
91f3b9070a
commit
116415707b
2 files changed
+3
-3
No files matched your search
@@ -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({
|
||||
|
||||
Reference in new issue
Block a user