This commit is contained in:
undefined committed 2020-06-30 23:03:18 +08:00
1 parent 0de7cd7b59
commit 7d7b12392f
18 files changed
+90 -47

No files matched your search

+4 -3
View File
@@ -170,7 +170,7 @@ const tasks = {
judgeText: (c.judge_text || '') + (c.message || ''),
});
}
return {
const rdoc = {
_id: doc._id,
status: doc.status,
score: doc.score,
@@ -180,16 +180,17 @@ const tasks = {
lang: doc.lang,
uid: doc.uid,
pid: pid(doc.pid),
tid: doc.tid,
domainId: doc.domain_id,
judger: doc.judge_uid,
judgeAt: doc.judge_at,
judgeTexts: doc.judge_texts,
compilerTexts: doc.compiler_texts,
rejudged: doc.rejudged,
testCases,
hidden: doc.hidden,
};
if (doc.rejudged) rdoc.rejudged = true;
if (doc.tid) rdoc.tid = doc.tid;
return rdoc;
},
domain: {
_id: '_id',