Skip to content

Commit

Permalink
[fix] Router NLP Repository Entity
Browse files Browse the repository at this point in the history
  • Loading branch information
dyohan9 committed Nov 12, 2019
1 parent fa1d37b commit 8f1ec1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bothub/api/v2/nlp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,9 @@ def repository_entity(self, request, **kwargs):
return Response(
{
"label": True if repository_entity.label else False,
"label_value": repository_entity.label.value,
"label_value": repository_entity.label.value
if repository_entity.label
else None,
}
)

Expand Down

0 comments on commit 8f1ec1d

Please sign in to comment.