mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix load priority
This commit is contained in:
1 parent
c3afc0074c
commit
c63d7c16c1
4 files changed
+16
-17
No files matched your search
@@ -64,7 +64,7 @@ export const RpTypes: Record<string, RpDef> = {
|
||||
journal: { $ne: null },
|
||||
}).sort(contest.RULES[tdoc.rule].statusSort);
|
||||
if (!await cursor.count()) continue;
|
||||
const [rankedTsdocs] = await contest.RULES[tdoc.rule].ranked(tdoc, cursor);
|
||||
const rankedTsdocs = await contest.RULES[tdoc.rule].ranked(tdoc, cursor);
|
||||
const users = rankedTsdocs.map((i) => ({ uid: i[1].uid, rank: i[0], old: udict[i[1].uid] }));
|
||||
// FIXME sum(rating.new) always less than sum(rating.old)
|
||||
for (const udoc of rating(users)) udict[udoc.uid] = udoc.new;
|
||||
|
||||
Reference in new issue
Block a user