Skip to content

Commit

Permalink
Merge pull request #41
Browse files Browse the repository at this point in the history
Resolves #37
Run checker against all P12861
  • Loading branch information
Teester authored Jul 11, 2024
2 parents 0eae837 + f572786 commit 926f55f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@
url: url,
success: function(data) {
if (data["claims"].hasOwnProperty("P12861")) {
entityschema_list.push(data["claims"]["P12861"][0]["mainsnak"]["datavalue"]["value"]["id"]);
for (let claim in data["claims"]["P12861"]) {
entityschema_list.push(data["claims"]["P12861"][claim]["mainsnak"]["datavalue"]["value"]["id"]);
}
}
},
});
Expand Down

0 comments on commit 926f55f

Please sign in to comment.