/ranking & script.recalcRanking

This commit is contained in:
masnn committed 2020-06-07 19:11:19 +08:00
1 parent 4aa1c9fe1f
commit 7a4d382dc9
9 files changed
+154 -53

No files matched your search

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