mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: rejudge: skip ignored submissions
This commit is contained in:
1 parent
b4f2efb139
commit
6cf6a57914
2 files changed
+5
-1
No files matched your search
@@ -442,6 +442,7 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
|
||||
const rdocs = await record.getMulti(domainId, {
|
||||
pid,
|
||||
contest: { $ne: new ObjectID('0'.repeat(24)) },
|
||||
status: { $ne: STATUS.STATUS_CANCELED },
|
||||
'files.hack': { $exists: false },
|
||||
}).project({ _id: 1, contest: 1 }).toArray();
|
||||
if (!this.pdoc.config || typeof this.pdoc.config === 'string') throw new ProblemConfigError();
|
||||
|
||||
@@ -216,7 +216,10 @@ class RecordDetailHandler extends ContestDetailBaseHandler {
|
||||
record.update(domainId, rid, $set),
|
||||
TaskModel.deleteMany({ rid: this.rdoc._id }),
|
||||
]);
|
||||
if (latest) await postJudge(latest);
|
||||
if (latest) {
|
||||
this.ctx.broadcast('record/change', latest);
|
||||
await postJudge(latest);
|
||||
}
|
||||
this.back();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user