use files hack for rejudge

This commit is contained in:
panda authored and undefined committed 2022-09-06 13:02:46 +08:00
1 parent bb7ee5cbf9
commit 9621f654c5
5 files changed
+13 -9

No files matched your search

+1 -1
View File
@@ -434,7 +434,7 @@ export class ProblemDetailHandler extends ContestDetailBaseHandler {
const rdocs = await record.getMulti(domainId, {
pid,
contest: { $ne: new ObjectID('0'.repeat(24)) },
status: { $ne: [STATUS.STATUS_HACK_SUCCESSFUL, STATUS.STATUS_HACK_UNSUCCESSFUL] },
'files.hack': { $exists: false },
}).project({ _id: 1, contest: 1 }).toArray();
const priority = await record.submissionPriority(this.user._id, -rdocs.length * 5 - 50);
await Promise.all(rdocs.map(