mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 01:38:19 +08:00
core: contest: acm: ignore compile_error
This commit is contained in:
1 parent
6905b9953e
commit
f79dbefd6c
7 files changed
+68
-19
No files matched your search
@@ -17,7 +17,7 @@ import {
|
||||
} from '../service/server';
|
||||
import * as bus from '../service/bus';
|
||||
import domain from '../model/domain';
|
||||
import { PERM, PRIV } from '../model/builtin';
|
||||
import { PERM, PRIV, STATUS } from '../model/builtin';
|
||||
import user from '../model/user';
|
||||
import * as system from '../model/system';
|
||||
import * as contest from '../model/contest';
|
||||
@@ -265,7 +265,7 @@ class HomeworkDetailProblemSubmitHandler extends HomeworkDetailProblemHandler {
|
||||
&& problem.inc(this.pdomainId, this.ppid, 'nSubmit', 1),
|
||||
domain.incUserInDomain(domainId, this.user._id, 'nSubmit'),
|
||||
contest.updateStatus(domainId, tid, this.user._id,
|
||||
rid, pid, false, 0, document.TYPE_HOMEWORK),
|
||||
rid, pid, STATUS.STATUS_WAITING, 0, document.TYPE_HOMEWORK),
|
||||
]);
|
||||
}
|
||||
bus.broadcast('record/change', rdoc);
|
||||
|
||||
@@ -28,7 +28,7 @@ export async function postJudge(rdoc: RecordDoc) {
|
||||
await contest.updateStatus(
|
||||
rdoc.domainId, rdoc.contest.tid, rdoc.uid, rdoc._id,
|
||||
rdoc.domainId === rdoc.pdomain ? rdoc.pid : `${rdoc.pdomain}:${rdoc.pid}`,
|
||||
accept, rdoc.score, rdoc.contest.type,
|
||||
rdoc.status, rdoc.score, rdoc.contest.type,
|
||||
);
|
||||
} else if (accept && updated) await domain.incUserInDomain(rdoc.domainId, rdoc.uid, 'nAccept', 1);
|
||||
const pdoc = (accept && updated)
|
||||
|
||||
Reference in new issue
Block a user