Skip to content

Commit

Permalink
most-imported: don't process a script twice
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthvp committed Nov 19, 2023
1 parent 36699ef commit 80b37eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reports/most-imported-scripts/most-imported-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ process.chdir(__dirname);
"pllimit": "max"
}).then(json => {
log('[S] Got basic script list');
scriptList = json.query.search.map(e => e.title).concat(
scriptList = [...new Set(json.query.search.map(e => e.title).concat(
json.query.pages[0].links.map(e => e.title).filter(e => e.endsWith('.js'))
);
))];
utils.saveObject('scriptList', scriptList);
return scriptList;
});
Expand Down

0 comments on commit 80b37eb

Please sign in to comment.