From fbcff89df666a578258a4803fcfd384bb4a7f46d Mon Sep 17 00:00:00 2001 From: t123yh Date: Tue, 22 Aug 2017 11:03:47 +0800 Subject: [PATCH] Fix skipped display. --- views/submission_content.ejs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/views/submission_content.ejs b/views/submission_content.ejs index 5040642..fc4c0f4 100644 --- a/views/submission_content.ejs +++ b/views/submission_content.ejs @@ -175,8 +175,8 @@ const vueApp = new Vue({ return "Running"; } else if (t.cases.some(c => c.status === TaskStatus.Waiting)) { return "Waiting"; - } else if (t.cases.every(c => c.status === TaskStatus.Done)) { - return this.getStatusString(this.firstNonAC(t.cases.map(c => c.result.type))); + } else if (t.cases.every(c => c.status === TaskStatus.Done || c.status === TaskStatus.Skipped)) { + return this.getStatusString(this.firstNonAC(t.cases.filter(c => c.result).map(c => c.result.type))); } else { return "System Error"; } @@ -188,6 +188,8 @@ const vueApp = new Vue({ return "Waiting"; } else if (c.status === TaskStatus.Running) { return "Running"; + } else if (c.status === TaskStatus.Skipped) { + return "Skipped"; } else { return "System Error"; }