mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: fix record_main contest filter
This commit is contained in:
1 parent
c02d803e8b
commit
3762bb31f5
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "3.4.25",
|
||||
"version": "3.4.26",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "src/loader",
|
||||
"module": "src/loader",
|
||||
|
||||
@@ -238,7 +238,7 @@ class RecordMainConnectionHandler extends ConnectionHandler {
|
||||
if (!this.pretest && rdoc.input) return;
|
||||
if (rdoc.domainId !== this.domainId) return;
|
||||
if (rdoc.contest && ![this.tid, '000000000000000000000000'].includes(rdoc.contest.toString())) return;
|
||||
if (contest.isLocked(this.tdoc) && !contest.canShowScoreboard.call(this, this.tdoc, true)) return;
|
||||
if (this.tid && contest.isLocked(this.tdoc) && !contest.canShowScoreboard.call(this, this.tdoc, true)) return;
|
||||
}
|
||||
if (this.pid && rdoc.pid !== this.pid) return;
|
||||
if (this.uid && rdoc.uid !== this.uid) return;
|
||||
|
||||
Reference in new issue
Block a user