parent
dc4455bec5
commit
98d84054d6
1 changed files with 3 additions and 0 deletions
3
app.py
3
app.py
|
|
@ -361,6 +361,9 @@ def existing_depicts_from_entity(entity):
|
|||
existing = []
|
||||
new_depicts = False
|
||||
for claim in entity['claims']['P180']:
|
||||
if 'datavalue' not in claim['mainsnak']:
|
||||
continue
|
||||
|
||||
item_id = claim['mainsnak']['datavalue']['value']['numeric-id']
|
||||
|
||||
item = DepictsItem.query.get(item_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue