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:
parent
543a01882b
commit
670f682c62
1 changed files with 1 additions and 2 deletions
|
@ -5,8 +5,7 @@ URL_OPENCAGE = "https://api.opencagedata.com/geocode/v1/json"
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
def on_load(self):
|
def on_load(self):
|
||||||
self.exports.add("set", {"setting": "location",
|
self.exports.add("set", {"setting": "location",
|
||||||
"help": "Set your location", "validate": self._get_location,
|
"help": "Set your location", "validate": self._get_location})
|
||||||
"human": lambda x: "%s, %s" % (x["city"], x["country"])})
|
|
||||||
|
|
||||||
def _get_location(self, s):
|
def _get_location(self, s):
|
||||||
page = utils.http.request(URL_OPENCAGE, get_params={
|
page = utils.http.request(URL_OPENCAGE, get_params={
|
||||||
|
|
Loading…
Reference in a new issue