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) { %>
+
+
+ 显示原始代码
+
+
+ 格式化代码
+
+
+ <% } %>
+
+
+
+
+
+
+
+
+
+
+ 子任务 #{{ $index + 1 }}
+
+
+
+
+
+ 得分:{{ Math.trunc(subtask.score) }}
+
+
+
+
+
+
+
+
+
+
+ 测试点 #{{ $caseIndex + 1 }}
+
+
+
+
+
+
+ 得分:{{ Math.trunc(curCase.result.scoringRate * 100) }}
+
+
+ 用时:{{ curCase.result.time }} ms
+
+
+ 内存:{{ curCase.result.memory }} KiB
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<% include submissions_item %>
+
+
+
+
+
+
+<% include footer %>