entity names are only unique by type
This commit is contained in:
parent
e61f742d3e
commit
d492619be6
3 changed files with 5 additions and 5 deletions
|
|
@ -81,7 +81,7 @@ def add_annotations(data):
|
|||
for a in data['annotations']:
|
||||
if layer['type'] == 'entity':
|
||||
try:
|
||||
value = Entity.get_by_name(a['value']).get_id()
|
||||
value = Entity.get_by_name(a['value'], layer['entity']).get_id()
|
||||
except Entity.DoesNotExist:
|
||||
continue
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue