mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 12:21:16 +00:00
prettier
This commit is contained in:
parent
ffce7f73b2
commit
12c59e3d9c
1 changed files with 8 additions and 11 deletions
19
crawl.mjs
19
crawl.mjs
|
@ -53,17 +53,14 @@ try {
|
||||||
// Crawl results from all instances include tons of data which needs to be compiled.
|
// Crawl results from all instances include tons of data which needs to be compiled.
|
||||||
// If it is too much data it breaks the build, so we need to exclude as much as possible.
|
// If it is too much data it breaks the build, so we need to exclude as much as possible.
|
||||||
stats.instance_details = stats.instance_details
|
stats.instance_details = stats.instance_details
|
||||||
// Exclude instances with closed registration
|
// Exclude instances with closed registration
|
||||||
.filter(
|
.filter(
|
||||||
i =>
|
i => i.site_info.site_view.local_site.registration_mode != "closed"
|
||||||
i.site_info.site_view.local_site.registration_mode != "closed"
|
)
|
||||||
)
|
// Exclude instances with few active users
|
||||||
// Exclude instances with few active users
|
.filter(
|
||||||
.filter(
|
i => i.site_info.site_view.counts.users_active_month > min_monthly_users
|
||||||
i =>
|
);
|
||||||
i.site_info.site_view.counts.users_active_month >
|
|
||||||
min_monthly_users
|
|
||||||
);
|
|
||||||
// Exclude unnecessary data
|
// Exclude unnecessary data
|
||||||
stats.instance_details.forEach(i => {
|
stats.instance_details.forEach(i => {
|
||||||
delete i.site_info.admins;
|
delete i.site_info.admins;
|
||||||
|
|
Loading…
Reference in a new issue