From: philipp Date: Sun, 30 Jul 2017 21:25:20 +0000 (+0000) Subject: rodelbahn_update_regioncache works now. X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wradmin.git/commitdiff_plain/77018b126585ddf1de7231c2d8a6def5086180c6 rodelbahn_update_regioncache works now. git-svn-id: http://www.winterrodeln.org/svn/wradmin/trunk@2686 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- diff --git a/wradmin/__init__.py b/wradmin/__init__.py index 4e98920..ca17b6f 100644 --- a/wradmin/__init__.py +++ b/wradmin/__init__.py @@ -57,7 +57,8 @@ def rodelbahn_update(): @app.route("/rodelbahn/update_regioncache") def rodelbahn_update_regioncache(): - pass + get_db() + return RodelbahnController().update() @app.route("/bericht/list") diff --git a/wradmin/controllers/rodelbahn.py b/wradmin/controllers/rodelbahn.py index 5af866e..647687b 100644 --- a/wradmin/controllers/rodelbahn.py +++ b/wradmin/controllers/rodelbahn.py @@ -63,7 +63,5 @@ class RodelbahnController: session['flash'] = 'Die Rodelbahneinträge in den Regionslisten wurden erfolgreich aktualisiert.' except wrpylib.wrmwcache.UpdateCacheError as e: session['flash'] = str(e) - session.save() # Redirect to result page - return redirect(url(controller='rodelbahn', action='list')) - + return redirect(url_for('rodelbahn_list'))