rating系统(测试

This commit is contained in:
masnn committed 2020-06-07 15:38:38 +08:00
1 parent 508f5644c3
commit 4aa1c9fe1f
7 files changed
+131 -5

No files matched your search

+2 -1
View File
@@ -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,