layer
This commit is contained in:
parent
7cfdf7b8db
commit
3088beb5bc
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ def add_annotations(data):
|
|||
layer = filter(lambda l: l['id'] == layer_id, settings.CONFIG['layers'])
|
||||
if not layer:
|
||||
return False
|
||||
else:
|
||||
layer = layer[0]
|
||||
user = User.objects.get(username=data['user'])
|
||||
for a in data['annotations']:
|
||||
if layer['type'] == 'entity':
|
||||
|
|
Loading…
Reference in a new issue