mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: allow quick rejudge
This commit is contained in:
1 parent
78925f0507
commit
0bf2c8362a
4 files changed
+19
-4
No files matched your search
@@ -196,7 +196,8 @@ class RecordDetailHandler extends ContestDetailBaseHandler {
|
||||
if (!pdoc?.config || typeof pdoc.config === 'string') throw new ProblemConfigError();
|
||||
const priority = await record.submissionPriority(this.user._id, -20);
|
||||
const isContest = this.rdoc.contest && this.rdoc.contest.toString() !== '000000000000000000000000';
|
||||
await record.reset(domainId, rid, true);
|
||||
const rdoc = await record.reset(domainId, rid, true);
|
||||
bus.broadcast('record/change', rdoc);
|
||||
await record.judge(domainId, rid, priority, isContest ? { detail: false } : {});
|
||||
this.back();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user