fix(plugins/starlists): split filtering [skip ci]
This commit is contained in:
@@ -26,7 +26,12 @@ export default async function({login, q, imports, data, account}, {enabled = fal
|
|||||||
repositories:[]
|
repositories:[]
|
||||||
}))))
|
}))))
|
||||||
const count = lists.length
|
const count = lists.length
|
||||||
lists = lists.filter(({name}) => (name)&&((only.includes(name.toLocaleLowerCase()))||((!only.length)&&(!ignored.includes(name.toLocaleLowerCase()))))).slice(0, limit)
|
console.debug(`metrics/compute/${login}/plugins > starlists > found [${lists.map(({name}) => name)}]`)
|
||||||
|
lists = lists
|
||||||
|
.filter(({name}) => name)
|
||||||
|
.filter(({name}) => (!only.length)||(only.includes(name.toLocaleLowerCase()))
|
||||||
|
.filter(({name}) => !ignored.includes(name.toLocaleLowerCase())))
|
||||||
|
.slice(0, limit)
|
||||||
console.debug(`metrics/compute/${login}/plugins > starlists > extracted ${lists.length} lists`)
|
console.debug(`metrics/compute/${login}/plugins > starlists > extracted ${lists.length} lists`)
|
||||||
|
|
||||||
//Fetch star list content
|
//Fetch star list content
|
||||||
|
|||||||
Reference in New Issue
Block a user