mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: shouldn't sync pretest into tsdoc
This commit is contained in:
1 parent
ddbcf42c9b
commit
5e0eb372f6
4 files changed
+41
-33
No files matched your search
@@ -356,11 +356,13 @@ export class ContestDetailProblemSubmitHandler extends ContestProblemHandler {
|
||||
tid,
|
||||
});
|
||||
const rdoc = await record.get(domainId, rid);
|
||||
await Promise.all([
|
||||
problem.inc(domainId, pid, 'nSubmit', 1),
|
||||
domain.incUserInDomain(domainId, this.user._id, 'nSubmit'),
|
||||
contest.updateStatus(domainId, tid, this.user._id, rid, pid),
|
||||
]);
|
||||
if (!pretest) {
|
||||
await Promise.all([
|
||||
problem.inc(domainId, pid, 'nSubmit', 1),
|
||||
domain.incUserInDomain(domainId, this.user._id, 'nSubmit'),
|
||||
contest.updateStatus(domainId, tid, this.user._id, rid, pid),
|
||||
]);
|
||||
}
|
||||
bus.boardcast('record/change', rdoc);
|
||||
if (!pretest && !contest.canShowRecord.call(this, this.tdoc)) {
|
||||
this.response.body = { tid };
|
||||
|
||||
Reference in new issue
Block a user