mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 17:46:28 +08:00
修复training显示异常
This commit is contained in:
1 parent
257d9814a9
commit
b2989cb9ea
14 files changed
+88
-89
No files matched your search
@@ -53,8 +53,9 @@ class ContestDetailHandler extends ContestHandler {
|
||||
contest.getStatus(domainId, this.tdoc.docId, this.user._id),
|
||||
problem.getList(domainId, this.tdoc.pids),
|
||||
]);
|
||||
const psdict = {}; let rdict = {}; let
|
||||
attended;
|
||||
const psdict = {};
|
||||
let rdict = {};
|
||||
let attended;
|
||||
if (tsdoc) {
|
||||
attended = tsdoc.attend === 1;
|
||||
for (const pdetail of tsdoc.journal || []) psdict[pdetail.pid] = pdetail;
|
||||
@@ -242,7 +243,10 @@ class ContestProblemSubmitHandler extends ContestProblemHandler {
|
||||
code,
|
||||
hidden: true,
|
||||
});
|
||||
await contest.updateStatus(domainId, this.tdoc.docId, this.user._id, rid, this.pdoc.docId, false, 0);
|
||||
await Promise.all([
|
||||
record.judge(domainId, rid),
|
||||
contest.updateStatus(domainId, this.tdoc.docId, this.user._id, rid, this.pdoc.docId),
|
||||
]);
|
||||
if (!this.canShowRecord(this.tdoc)) {
|
||||
this.response.body = { tid };
|
||||
this.response.redirect = `/c/${tid}`;
|
||||
|
||||
Reference in new issue
Block a user