ui: allow quick rejudge

This commit is contained in:
undefined committed 2023-01-11 00:54:59 +08:00
1 parent 78925f0507
commit 0bf2c8362a
4 files changed
+19 -4

No files matched your search

+2 -1
View File
@@ -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();
}