Commit a3f4ab2e authored by Elias's avatar Elias

Annotations Fix : NgramEdit.post() bug

parent 66cf7ee9
......@@ -79,12 +79,10 @@ class NgramEdit(APIView):
node_ngram = Node_Ngram(node_id=list_id, ngram_id=ngram_id, weight=1.0)
session.add(node_ngram)
session.commit()
# return the response
return Response({
'uuid': ngram_id,
'text': ngram_text,
'occurrences': node_ngram.weight,
'list_id': list_id,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment