From be14ce292e084c6914376b70eee1f7858153a11c Mon Sep 17 00:00:00 2001 From: Tom Bocklisch Date: Mon, 24 Sep 2018 18:28:49 +0200 Subject: [PATCH] fixed a bug in current state creation rasahq/rasa_core#1028 --- CHANGELOG.rst | 7 +++++++ rasa_core_sdk/__init__.py | 2 +- rasa_core_sdk/version.py | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 84bcfcf5c..24fc89524 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -23,6 +23,13 @@ Removed Fixed ----- +[0.11.5] - 2018-09-24 +^^^^^^^^^^^^^^^^^^^^^ + +Fixed +----- +- current state call in tracker + [0.11.4] - 2018-09-17 ^^^^^^^^^^^^^^^^^^^^^ diff --git a/rasa_core_sdk/__init__.py b/rasa_core_sdk/__init__.py index 130e857d5..e6c6eccd2 100644 --- a/rasa_core_sdk/__init__.py +++ b/rasa_core_sdk/__init__.py @@ -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 diff --git a/rasa_core_sdk/version.py b/rasa_core_sdk/version.py index 6933fc98c..783c75932 100644 --- a/rasa_core_sdk/version.py +++ b/rasa_core_sdk/version.py @@ -4,4 +4,4 @@ from __future__ import absolute_import -__version__ = '0.11.4' +__version__ = '0.11.5'