Skip to content

Commit

Permalink
Run checker against all P12861 in linked entity, not just one
Browse files Browse the repository at this point in the history
  • Loading branch information
Teester committed Jul 11, 2024
1 parent 0d13754 commit f572786
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 f572786

Please sign in to comment.