aboutsummaryrefslogtreecommitdiff
path: root/modules/location.py
diff options
context:
space:
mode:
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={