Skip to content

Commit

Permalink
Removed intent
Browse files Browse the repository at this point in the history
  • Loading branch information
edudouglas committed Aug 11, 2017
1 parent f8f57f7 commit 77be913
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions temba/msgs/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ def clear_old_msg_external_ids():


@task(track_started=True, name='send_chatbase_logs')
def send_chatbase_logs(chatbase_api_key, chatbase_api_version, channel_name, text, contact_id, log_type, not_handled, intent=None): # pragma: needs cover
def send_chatbase_logs(chatbase_api_key, chatbase_api_version, channel_name, text, contact_id, log_type, not_handled): # pragma: needs cover
"""
Send messages logs in batch to Chatbase
"""
Expand All @@ -426,9 +426,6 @@ def send_chatbase_logs(chatbase_api_key, chatbase_api_version, channel_name, tex
if log_type == 'user' and not_handled:
message['not_handled'] = not_handled

if intent:
message['intent'] = intent

headers = {'Content-Type': 'application/json'}
headers.update(TEMBA_HEADERS)
requests.post(settings.CHATBASE_API_URL, data=json.dumps(message), headers=headers)

0 comments on commit 77be913

Please sign in to comment.