Skip to content

Commit

Permalink
hotfix: add tag to db
Browse files Browse the repository at this point in the history
  • Loading branch information
Dierme committed Feb 21, 2018
1 parent 2ed3f21 commit 61ed979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ def add_entity_tag():
resp_code = client.create_entity(tag)
if resp_code == 200:
client.create_sample(tag, expressions)
EntityTags.create_entitytag(form.tag_value.data, form.expressions.data)
else:
form._errors = {}
form._errors['Server error'] = 'Failed to push sample to wit.ai'
Expand Down
4 changes: 2 additions & 2 deletions miscellaneous
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ $ curl -XPOST 'https://api.wit.ai/samples?v=20170307' \
"text": "I want to fly to sfo",
"entities": [
{
"entity": "favorite_city",
"value": "London"
"entity": "boom",
"value": "boom"
}
]
}]'
Expand Down

0 comments on commit 61ed979

Please sign in to comment.