mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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",
|
"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",
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in new issue
Block a user