flash(str(e), 'error')
# Redirect to result page
return redirect(url_for('rodelbahn_list'))
+
+ def update_mapcache(self):
+ """Updates the wrmappointcache and wrmappathcache tables from the wiki."""
+ c = model.meta.Session.connection()
+ try:
+ wrpylib.wrmwcache.update_wrmapcache(c)
+ model.meta.Session.commit()
+ flash('Die Landkarteninformationen aus dem Wiki wurden erfolgreich aktualisiesrt.', 'info')
+ except wrpylib.wrmwcache.UpdateCacheError as e:
+ flash(str(e), 'error')
+ # Redirect to result page
+ return redirect(url_for('rodelbahn_list'))