From b2127dfc8a764501463f7d26a886c60cff9bf0ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9cil=20Malone?= Date: Tue, 16 Apr 2019 09:57:59 -0300 Subject: [PATCH] Update actions.py Now, the method to get current is only 'current'. --- Full Code [Latest release of Rasa NLU and Rasa Core]/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Full Code [Latest release of Rasa NLU and Rasa Core]/actions.py b/Full Code [Latest release of Rasa NLU and Rasa Core]/actions.py index 795892c..dcead07 100644 --- a/Full Code [Latest release of Rasa NLU and Rasa Core]/actions.py +++ b/Full Code [Latest release of Rasa NLU and Rasa Core]/actions.py @@ -15,7 +15,7 @@ def run(self, dispatcher, tracker, domain): client = ApixuClient(api_key) loc = tracker.get_slot('location') - current = client.getcurrent(q=loc) + current = client.current(q=loc) country = current['location']['country'] city = current['location']['name']