diff --git a/libs/judger.js b/libs/judger.js index 99c3ba5..cb52392 100644 --- a/libs/judger.js +++ b/libs/judger.js @@ -158,6 +158,7 @@ async function connect() { } const result = msgPack.decode(payload); + console.log(result); winston.verbose('Received report for task ' + result.taskId); const judge_state = await JudgeState.findOne({ @@ -170,7 +171,7 @@ async function connect() { const convertedResult = judgeResult.convertResult(result.taskId, result.progress); winston.verbose('Reporting report finished: ' + result.taskId); progressPusher.cleanupProgress(result.taskId); - + console.log(convertedResult); if (!judge_state) return; judge_state.score = convertedResult.score; judge_state.pending = false; diff --git a/views/contest_edit.ejs b/views/contest_edit.ejs index 130a23a..2fa4e82 100644 --- a/views/contest_edit.ejs +++ b/views/contest_edit.ejs @@ -151,7 +151,7 @@ new window.Vue({ } }); const userselectarrayId = originUserselectarray.map(item=>item.id); - const userSelectArray = this.datas.filter((item) => { + const userSelectArray = this.allproblemList.filter((item) => { return userselectarrayId.includes(item.id); }) this.toggleSelection(userSelectArray); diff --git a/views/submission.ejs b/views/submission.ejs index 71b9c5e..fef0e89 100644 --- a/views/submission.ejs +++ b/views/submission.ejs @@ -34,6 +34,7 @@ + diff --git a/views/submission_contest.ejs b/views/submission_contest.ejs new file mode 100644 index 0000000..79fcf77 --- /dev/null +++ b/views/submission_contest.ejs @@ -0,0 +1,442 @@ +<% this.title = '提交记录 #' + info.submissionId %> +<% include util %> +<% include header %> + + + +
+
已分享 编号 题目 状态
+ + + + + + + + + + + + + + + + + + + +
编号题目状态分数总时间单项时间内存代码 / 答案文件提交者提交时间重新评测分享
+
<%= cid %>
+
<%= pid %>
+
<%= sid %>
+ + <% if (formattedCode !== null) { %> + + + + + <% } %> + + + + +
+ +
+ + + + + +<% include submissions_item %> + + + + + + +<% include footer %>