Skip to content

Commit

Permalink
Remove empty intent
Browse files Browse the repository at this point in the history
  • Loading branch information
edudouglas committed May 28, 2019
1 parent c7e8177 commit af64315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bothub/api/v2/evaluate/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ class Meta:

def get_intents_list(self, obj):
return RepositoryEvaluateResultIntentSerializer(
obj.evaluate_result_intent.all().exclude(intent__exact=''), many=True).data
obj.evaluate_result_intent.all().exclude(intent__exact=''),
many=True).data

def get_entities_list(self, obj):
return RepositoryEvaluateResultEntitySerializer(
Expand Down

0 comments on commit af64315

Please sign in to comment.