From 0003856e20c6a747b988767c02bb383a5d8f9edc Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 8 Apr 2022 12:50:11 +0200 Subject: [PATCH] Fix recommendations --- generate_translations.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate_translations.mjs b/generate_translations.mjs index b6a739d..36fdc84 100644 --- a/generate_translations.mjs +++ b/generate_translations.mjs @@ -13,7 +13,8 @@ fs.mkdirSync(outDir, { recursive: true }); // Write the stats file try { const stats = JSON.parse(fs.readFileSync(statsFile, "utf8")); - const recommended_domains = fs.readFileSync(recommendationsFile, "utf8").split(','); + const recommended_domains = fs.readFileSync(recommendationsFile, "utf8").trim().split(','); + console.log(recommended_domains); const recommended = stats.instance_details.filter(i => recommended_domains.includes(i.domain) );