mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-21 20:01:16 +00:00
prettier 2
This commit is contained in:
parent
4bd5375916
commit
28f2904c3c
1 changed files with 5 additions and 4 deletions
|
@ -11,7 +11,7 @@ fs.mkdirSync(outDir, { recursive: true });
|
||||||
// crawl instance stats
|
// crawl instance stats
|
||||||
try {
|
try {
|
||||||
const recommended_instances = JSON.parse(
|
const recommended_instances = JSON.parse(
|
||||||
fs.readFileSync(recommendationsFile, "utf8")
|
fs.readFileSync(recommendationsFile, "utf8"),
|
||||||
);
|
);
|
||||||
var all_recommended = [];
|
var all_recommended = [];
|
||||||
for (var k in recommended_instances) {
|
for (var k in recommended_instances) {
|
||||||
|
@ -37,7 +37,7 @@ try {
|
||||||
{
|
{
|
||||||
cwd: "lemmy-stats-crawler",
|
cwd: "lemmy-stats-crawler",
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
let savedOutput = "";
|
let savedOutput = "";
|
||||||
|
|
||||||
|
@ -59,11 +59,12 @@ try {
|
||||||
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.site_info.site_view.local_site.registration_mode != "closed"
|
i => 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,
|
||||||
);
|
);
|
||||||
|
|
||||||
let stats2 = {
|
let stats2 = {
|
||||||
|
|
Loading…
Reference in a new issue