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