From 670f682c627bfe7ca9c7f5f28454b8b9438e1004 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 7 May 2019 10:59:24 +0100 Subject: [PATCH] Remove '"human"' key from location settings export - we dont use it and it's using elements of 'location' that were removed --- modules/location.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/location.py b/modules/location.py index 807fd33c..3e65346c 100644 --- a/modules/location.py +++ b/modules/location.py @@ -5,8 +5,7 @@ URL_OPENCAGE = "https://api.opencagedata.com/geocode/v1/json" class Module(ModuleManager.BaseModule): def on_load(self): self.exports.add("set", {"setting": "location", - "help": "Set your location", "validate": self._get_location, - "human": lambda x: "%s, %s" % (x["city"], x["country"])}) + "help": "Set your location", "validate": self._get_location}) def _get_location(self, s): page = utils.http.request(URL_OPENCAGE, get_params={