entity names are only unique by type

This commit is contained in:
j 2015-02-06 12:42:19 +05:30
commit d492619be6
3 changed files with 5 additions and 5 deletions

View file

@ -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: