mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: check contest info when rejudge
This commit is contained in:
1 parent
0b77ed6b76
commit
5335763f57
2 files changed
+4
-3
No files matched your search
@@ -162,8 +162,9 @@ class RecordDetailHandler extends Handler {
|
||||
const priority = await record.submissionPriority(this.user._id, -20);
|
||||
const rdoc = await record.get(domainId, rid);
|
||||
if (rdoc) {
|
||||
const isContest = rdoc.contest && rdoc.contest.toHexString() !== '000000000000000000000000';
|
||||
await record.reset(domainId, rid, true);
|
||||
await record.judge(domainId, rid, priority);
|
||||
await record.judge(domainId, rid, priority, isContest ? { detail: false } : {});
|
||||
}
|
||||
this.back();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user