core: judge: filter generate

This commit is contained in:
undefined committed 2023-12-20 20:27:30 +08:00
1 parent fdb732a077
commit 3fd2b104ef
1 file changed
+1 -1
+1 -1
View File
@@ -75,7 +75,7 @@ export async function next(body: Partial<JudgeResultBody>) {
}
export async function postJudge(rdoc: RecordDoc) {
if (typeof rdoc.input === 'string') return;
if (rdoc.contest.toString().startsWith('0'.repeat(23))) return;
const accept = rdoc.status === builtin.STATUS.STATUS_ACCEPTED;
const updated = await problem.updateStatus(rdoc.domainId, rdoc.pid, rdoc.uid, rdoc._id, rdoc.status, rdoc.score);
if (rdoc.contest) {