From 82cc27016daacf39ec3135febb3697ab4d1f3d89 Mon Sep 17 00:00:00 2001 From: panda Date: Wed, 8 May 2024 10:05:27 +0800 Subject: [PATCH] core: fix ioi strict cancel score on contest (#800) --- packages/hydrooj/src/handler/record.ts | 1 + packages/hydrooj/src/model/record.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/hydrooj/src/handler/record.ts b/packages/hydrooj/src/handler/record.ts index 1481daae2..7a3d4d8bd 100644 --- a/packages/hydrooj/src/handler/record.ts +++ b/packages/hydrooj/src/handler/record.ts @@ -233,6 +233,7 @@ class RecordDetailHandler extends ContestDetailBaseHandler { testCases: [{ id: 0, subtaskId: 0, status: 9, score: 0, time: 0, memory: 0, message: 'score canceled', }], + subtasks: {}, }; const [latest] = await Promise.all([ record.update(domainId, rid, $set), diff --git a/packages/hydrooj/src/model/record.ts b/packages/hydrooj/src/model/record.ts index c554d1fe4..368d75cfd 100644 --- a/packages/hydrooj/src/model/record.ts +++ b/packages/hydrooj/src/model/record.ts @@ -211,6 +211,7 @@ export default class RecordModel { time: 0, memory: 0, testCases: [], + subtasks: {}, judgeTexts: [], compilerTexts: [], judgeAt: null,