Skip to content

Commit

Permalink
Merge pull request #52 from joseballester/fix-expenses-morningstar-dk
Browse files Browse the repository at this point in the history
Fix expenses for morningstar-no
  • Loading branch information
joseballester authored Jul 16, 2022
2 parents 63663a6 + d57d066 commit 9617251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/morningstar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9617251

Please sign in to comment.