mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: 计算ranking时忽略Hydro用户
This commit is contained in:
1 parent
382dd53c0c
commit
923d10fb84
4 files changed
+4
-3
No files matched your search
@@ -95,6 +95,7 @@ export async function calcLevel(domainId: string, report: Function) {
|
||||
let bulk = coll.initializeUnorderedBulkOp();
|
||||
while (await ducur.hasNext()) {
|
||||
const dudoc = await ducur.next();
|
||||
if ([0, 1].includes(dudoc.uid)) continue;
|
||||
count++;
|
||||
if (!dudoc.rp) dudoc.rp = null;
|
||||
if (dudoc.rp !== last.rp) rank = count;
|
||||
|
||||
Reference in new issue
Block a user