aboutsummaryrefslogtreecommitdiff
path: root/modules/location.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-23 11:49:57 +0100
committerGravatar jesopo2019-05-23 11:49:57 +0100
commitd8b625eaa93ae28685b39a55171d84d19bae582f (patch)
tree0c043410daa3b2d64b1051e1a1b48dcd0f572231 /modules/location.py
parentUse require_setting in birthday.py (diff)
signature
Add setting example in location.py
Diffstat (limited to 'modules/location.py')
-rw-r--r--modules/location.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/location.py b/modules/location.py
index 3e65346c..22e6a1ad 100644
--- a/modules/location.py
+++ b/modules/location.py
@@ -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={