From e16a6dd591ceab363f107cfcf0951ced947fefec Mon Sep 17 00:00:00 2001 From: shivangpatel Date: Mon, 29 Apr 2019 10:05:08 +0530 Subject: [PATCH] getcurrent replaced by current `getcurrent` method does not exist anymore. It was replaced by `current` method. Check this link : https://github.com/apixu/apixu-python/blob/master/examples/current.py --- 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']