Browse Source

Merge branch 'master' of zhaojunzhe/fair-web into master

pull/31/head
richie 5 years ago committed by Gogs
parent
commit
6e560f2893
  1. 4
      libs/submissions_process.js

4
libs/submissions_process.js

@ -78,7 +78,7 @@ const processOverallResult = (source, config) => {
return { return {
compile: source.compile, compile: source.compile,
judge: { judge: {
subtasks: source.judge.subtasks && source.judge.subtasks.map(st => ({ subtasks: source.judge ? source.judge.subtasks && source.judge.subtasks.map(st => ({
score: st.score, score: st.score,
cases: st.cases.map(cs => ({ cases: st.cases.map(cs => ({
status: cs.status, status: cs.status,
@ -96,7 +96,7 @@ const processOverallResult = (source, config) => {
spjMessage: config.showTestdata ? cs.result.spjMessage : undefined, spjMessage: config.showTestdata ? cs.result.spjMessage : undefined,
} }
})) }))
})) })) : null
} }
}; };
} }

Loading…
Cancel
Save