From d8b625eaa93ae28685b39a55171d84d19bae582f Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 23 May 2019 11:49:57 +0100 Subject: Add setting example in location.py --- modules/location.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/location.py') 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={ -- cgit v1.3.1-10-gc9f91