a
This commit is contained in:
parent
e70528632f
commit
2b45c34243
1 changed files with 2 additions and 2 deletions
4
site.js
4
site.js
|
@ -81,7 +81,8 @@ async function siteCollector(user, path, site, useLimit) {
|
||||||
let depth = process.env.depth || 1;
|
let depth = process.env.depth || 1;
|
||||||
|
|
||||||
for (let i = 0; i < depth; i++) {
|
for (let i = 0; i < depth; i++) {
|
||||||
for (let u of penv) {
|
let b = [...users];
|
||||||
|
for (let u of b) {
|
||||||
let ca = await siteCollector(u, 'followers', site);
|
let ca = await siteCollector(u, 'followers', site);
|
||||||
users = users.concat(ca);
|
users = users.concat(ca);
|
||||||
legal = legal.concat(ca);
|
legal = legal.concat(ca);
|
||||||
|
@ -89,7 +90,6 @@ async function siteCollector(user, path, site, useLimit) {
|
||||||
}
|
}
|
||||||
|
|
||||||
users = [...new Set(users)];
|
users = [...new Set(users)];
|
||||||
penv = [...users];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let data = {};
|
let data = {};
|
||||||
|
|
Loading…
Reference in a new issue