mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
rating系统(测试
This commit is contained in:
1 parent
508f5644c3
commit
4aa1c9fe1f
7 files changed
+131
-5
No files matched your search
@@ -271,7 +271,6 @@ function getStatus(domainId, tid, uid, type = document.TYPE_CONTEST) {
|
||||
|
||||
async function getListStatus(domainId, uid, tids, type = document.TYPE_CONTEST) {
|
||||
const r = {};
|
||||
console.log(tids);
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
for (const tid of tids) r[tid] = await getStatus(domainId, tid, uid, type);
|
||||
return r;
|
||||
@@ -392,11 +391,13 @@ async function recalcStatus(domainId, tid, type) {
|
||||
}
|
||||
return await Promise.all(tasks);
|
||||
}
|
||||
|
||||
global.Hydro.model.contest = module.exports = {
|
||||
RULES,
|
||||
ContestHandlerMixin,
|
||||
add,
|
||||
getListStatus,
|
||||
getMultiStatus,
|
||||
attend,
|
||||
edit,
|
||||
get,
|
||||
|
||||
Reference in new issue
Block a user