From 36f813339c41262dc44d7c035be944c767ed4f56 Mon Sep 17 00:00:00 2001 From: Ty Date: Fri, 19 Jul 2019 17:42:38 +0200 Subject: [PATCH] updating api call to current weather --- Full_Code_Latest/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Full_Code_Latest/actions.py b/Full_Code_Latest/actions.py index 795892c..dcead07 100644 --- a/Full_Code_Latest/actions.py +++ b/Full_Code_Latest/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']