Browse Source

Fix testcase's System Error message not shown

pull/6/head
Menci 6 years ago
parent
commit
54cd962e60
  1. 1
      libs/submissions_process.js
  2. 2
      views/submission.ejs

1
libs/submissions_process.js

@ -66,6 +66,7 @@ const processOverallResult = (source, config) => {
score: st.score, score: st.score,
cases: st.cases.map(cs => ({ cases: st.cases.map(cs => ({
status: cs.status, status: cs.status,
errorMessage: cs.errorMessage,
result: cs.result && { result: cs.result && {
type: cs.result.type, type: cs.result.type,
time: config.showUsage ? cs.result.time : undefined, time: config.showUsage ? cs.result.time : undefined,

2
views/submission.ejs

@ -85,7 +85,7 @@
<div class="content" :class="singleSubtask ? 'active' : ''"> <div class="content" :class="singleSubtask ? 'active' : ''">
<div class="accordion"> <div class="accordion">
<template v-for="curCase, $caseIndex in subtask.cases"> <template v-for="curCase, $caseIndex in subtask.cases">
<div class="title" :class="checkTestcaseOK(curCase) ? '' : 'unexpandable'"> <div class="title" :class="checkTestcaseOK(curCase) || curCase.errorMessage ? '' : 'unexpandable'">
<div class="ui grid"> <div class="ui grid">
<div class="three wide column"> <div class="three wide column">
<i class="dropdown icon"></i> <i class="dropdown icon"></i>

Loading…
Cancel
Save