Skip to content

Commit

Permalink
fix hashing of UserUttered
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Dec 7, 2020
1 parent 8ba989c commit a1e2bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa/shared/core/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def _from_parse_data(

def __hash__(self) -> int:
"""Returns unique hash of object."""
return hash((self.text, self.intent_name, jsonpickle.encode(self.entities)))
return hash(json.dumps(self.as_sub_state()))

@property
def intent_name(self) -> Optional[Text]:
Expand Down

0 comments on commit a1e2bee

Please sign in to comment.