Skip to content

Commit

Permalink
Correct cast to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
gunthercox committed Jun 24, 2017
1 parent 1df0717 commit 49900b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions chatterbot/storage/sql_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ def update(self, statement):
if statement.text:
record.text = statement.text
if statement.extra_data:
record.extra_data = dict[statement.extra_data]
record.extra_data = dict(statement.extra_data)
if statement.in_response_to:
record.in_response_to = list(map(get_response_table, statement.in_response_to))
record.in_response_to = list(
map(get_response_table, statement.in_response_to)
)
session.add(record)
else:
session.add(get_statement_table(statement))
Expand Down

0 comments on commit 49900b9

Please sign in to comment.