Remove '"human"' key from location settings export - we dont use it and it's

using elements of 'location' that were removed
This commit is contained in:
jesopo 2019-05-07 10:59:24 +01:00
parent 543a01882b
commit 670f682c62

View file

@ -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={