From: philipp Date: Mon, 7 Feb 2011 21:44:19 +0000 (+0000) Subject: Fixed: MapTool couldn't load the sledruns. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wradmin.git/commitdiff_plain/274589fcb70e880d1b14f8720d32526c281edcf1 Fixed: MapTool couldn't load the sledruns. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/wradmin@759 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- diff --git a/wradmin/setup.py b/wradmin/setup.py index 86083ae..61de7b0 100644 --- a/wradmin/setup.py +++ b/wradmin/setup.py @@ -7,7 +7,7 @@ except ImportError: setup( name='wradmin', - version='1.4.0', + version='1.4.1', description='Administrative Interface for Winterrodeln', author='Philipp Spitzer', author_email='philipp.spitzer@winterrodeln.org', diff --git a/wradmin/wradmin/controllers/maptool.py b/wradmin/wradmin/controllers/maptool.py index a78198e..ae9acea 100644 --- a/wradmin/wradmin/controllers/maptool.py +++ b/wradmin/wradmin/controllers/maptool.py @@ -14,7 +14,7 @@ class MaptoolController(BaseController): @jsonify def ajax_sledding(self): # Putting the result in a dict is not necessary but avoids a warning that array type jsonified data are cross-site data leak attackable - return {'sledding': model.meta.Session.query(model.WrSleddingCache.page_title, model.WrSleddingCache.position_latitude, model.WrSleddingCache.position_longitude).filter('position_latitude is not null and position_longitude is not null').all()} + return {'sledding': model.meta.Session.query(model.WrSledrunCache.page_title, model.WrSledrunCache.position_latitude, model.WrSledrunCache.position_longitude).filter('position_latitude is not null and position_longitude is not null').all()} @jsonify def ajax_inns(self):