Skip to content

Commit

Permalink
fixed a bug in current state creation rasahq/rasa_core#1028
Browse files Browse the repository at this point in the history
  • Loading branch information
tmbo committed Sep 24, 2018
1 parent eb95af6 commit be14ce2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ Removed
Fixed
-----

[0.11.5] - 2018-09-24
^^^^^^^^^^^^^^^^^^^^^

Fixed
-----
- current state call in tracker

[0.11.4] - 2018-09-17
^^^^^^^^^^^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion rasa_core_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def current_state(self):
"""Return the current tracker state as an object."""

if len(self.events) > 0:
latest_event_time = self.events[-1].timestamp
latest_event_time = self.events[-1].get("timestamp")
else:
latest_event_time = None

Expand Down
2 changes: 1 addition & 1 deletion rasa_core_sdk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
from __future__ import absolute_import


__version__ = '0.11.4'
__version__ = '0.11.5'

0 comments on commit be14ce2

Please sign in to comment.