judge: bug fixes

This commit is contained in:
undefined committed 2022-09-06 13:02:46 +08:00
1 parent fe0cd78db7
commit 5d0676a5d9
6 files changed
+17 -17

No files matched your search

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