From eddce7ca817e20e26bc9130e8a7a82b4445d4313 Mon Sep 17 00:00:00 2001 From: zjz1993 <1429595365@qq.com> Date: Mon, 5 Aug 2019 10:00:24 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=E4=BF=AE=E5=A4=8D=E7=82=B9=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E6=B5=8B=E8=AF=84=E6=97=B6=E5=87=BA=E7=8E=B0=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E6=89=BE=E4=B8=8D=E5=88=B0=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/submissions_process.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/submissions_process.js b/libs/submissions_process.js index 05e89c9..d20afc4 100644 --- a/libs/submissions_process.js +++ b/libs/submissions_process.js @@ -78,7 +78,7 @@ const processOverallResult = (source, config) => { return { compile: source.compile, judge: { - subtasks: source.judge.subtasks && source.judge.subtasks.map(st => ({ + subtasks: source.judge ? source.judge.subtasks && source.judge.subtasks.map(st => ({ score: st.score, cases: st.cases.map(cs => ({ status: cs.status, @@ -96,7 +96,7 @@ const processOverallResult = (source, config) => { spjMessage: config.showTestdata ? cs.result.spjMessage : undefined, } })) - })) + })) : null } }; }