Add setting example in location.py
This commit is contained in:
parent
34b7768d42
commit
d8b625eaa9
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ 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})
|
||||
"help": "Set your location", "validate": self._get_location,
|
||||
"example": "London, GB"})
|
||||
|
||||
def _get_location(self, s):
|
||||
page = utils.http.request(URL_OPENCAGE, get_params={
|
||||
|
|
Loading…
Reference in a new issue