aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-07-16 16:42:13 +0100
committerGravatar jesopo2019-07-16 16:42:13 +0100
commit759324bb65e8a5520a738c198eac3514784fb3d0 (patch)
treef26fd1047de25fb1f5db39a35cae23b0923813f9
parentDon't try to get rss urls when there are none (diff)
signature
expose reverse geocoding through exports
-rw-r--r--modules/location.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/location.py b/modules/location.py
index 0c795535..53c25cf9 100644
--- a/modules/location.py
+++ b/modules/location.py
@@ -16,6 +16,7 @@ class Module(ModuleManager.BaseModule):
example="London, GB")
setting._func = self._get_location
self.exports.add("set", setting)
+ self.exports.add("get-location", self._get_location)
def _get_location(self, s):
page = utils.http.request(URL_OPENCAGE, get_params={