From d57d066f94e0bde12f9575c5c424203fd306e7e3 Mon Sep 17 00:00:00 2001 From: Jose Ballester Date: Sat, 16 Jul 2022 19:31:04 +0200 Subject: [PATCH] Fix expenses for morningstar-no --- sources/morningstar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/morningstar.js b/sources/morningstar.js index afe40cd..3fb7d65 100644 --- a/sources/morningstar.js +++ b/sources/morningstar.js @@ -166,11 +166,11 @@ function getExpensesFromMorningstar(doc, country) { const $ = Cheerio.load(doc); if (country == "au") { return $("table:eq(11)").find("td:eq(12)").text(); - } else if (country == "de") { + } else if (country == "de" || country == "dk") { return $(".overviewKeyStatsTable:eq(0)").find(".text:eq(9)").text(); } else if (country == "uk" || country == "gb") { return $(".overviewKeyStatsTable:eq(0)").find(".text:last").text(); - } else if (country == "nl" || country == "dk" || country == "ch" || country == "it") { + } else if (country == "nl" || country == "ch" || country == "it") { return $(".overviewKeyStatsTable:eq(0)").find(".text:eq(8)").text(); } else { return $(".overviewKeyStatsTable:eq(0)").find(".text:eq(7)").text();