forked from 0x2620/pandora
annotations: fix 'unkown' typo
This commit is contained in:
parent
5e6b054896
commit
1ef7101761
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ def addAnnotation(request, data):
|
||||||
value = Entity.get_by_name(ox.decode_html(data['value']), layer['entity']).get_id()
|
value = Entity.get_by_name(ox.decode_html(data['value']), layer['entity']).get_id()
|
||||||
except Entity.DoesNotExist:
|
except Entity.DoesNotExist:
|
||||||
response = json_response({})
|
response = json_response({})
|
||||||
response['status']['text'] = 'unkown entity'
|
response['status']['text'] = 'unknown entity'
|
||||||
return render_to_json_response(response)
|
return render_to_json_response(response)
|
||||||
else:
|
else:
|
||||||
value = data['value']
|
value = data['value']
|
||||||
|
@ -285,7 +285,7 @@ def editAnnotation(request, data):
|
||||||
value = Entity.get_by_name(ox.decode_html(data['value']), layer['entity']).get_id()
|
value = Entity.get_by_name(ox.decode_html(data['value']), layer['entity']).get_id()
|
||||||
except Entity.DoesNotExist:
|
except Entity.DoesNotExist:
|
||||||
response = json_response({})
|
response = json_response({})
|
||||||
response['status']['text'] = 'unkown entity'
|
response['status']['text'] = 'unknown entity'
|
||||||
return render_to_json_response(response)
|
return render_to_json_response(response)
|
||||||
else:
|
else:
|
||||||
value = data[key]
|
value = data[key]
|
||||||
|
|
Loading…
Reference in a new issue