mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-18 17:38:19 +08:00
/ranking & script.recalcRanking
This commit is contained in:
1 parent
4aa1c9fe1f
commit
7a4d382dc9
9 files changed
+154
-53
No files matched your search
@@ -14,9 +14,8 @@ async function run({ domainId, contestId }) {
|
||||
for (const result of rankedTsdocs) {
|
||||
users.push({ ...result[1], rank: result[0], old: udict[result[1].uid].rating || 1500 });
|
||||
}
|
||||
console.log(users);
|
||||
const rated = rating(users);
|
||||
console.log(rated);
|
||||
return rated;
|
||||
}
|
||||
|
||||
global.Hydro.script.rating = module.exports = { run };
|
||||
Reference in new issue
Block a user