core: fix script result display

This commit is contained in:
undefined committed 2021-09-25 21:55:35 +08:00
1 parent e4c2f309c4
commit 8fb4a9b71f
2 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ class RecordDetailHandler extends Handler {
else pdoc = { ...problem.default, ...pdoc ? pick(pdoc, ['domainId', 'docId', 'pid']) : {} };
}
this.response.body = { udoc, rdoc, pdoc };
if (rdoc.contest) {
if (rdoc.contest && rdoc.contest.toHexString() !== '000000000000000000000000') {
this.response.body.tdoc = await contest.get(domainId, rdoc.contest);
}
}