mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
优化rating计算速度
This commit is contained in:
1 parent
45f1184d68
commit
55912b087d
22 files changed
+309
-178
No files matched your search
@@ -176,7 +176,7 @@ class ProblemSubmitHandler extends ProblemDetailHandler {
|
||||
});
|
||||
await Promise.all([
|
||||
record.judge(domainId, rid),
|
||||
user.inc(this.user._id, 'nSubmit'),
|
||||
user.incDomain(domainId, this.user._id, 'nSubmit'),
|
||||
]);
|
||||
this.response.body = { rid };
|
||||
this.response.redirect = `/r/${rid}`;
|
||||
|
||||
Reference in new issue
Block a user