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