Browse Source

Rebuild GeoJSON files on submit.

opi 10 years ago
parent
commit
31e65fa3ce
1 changed files with 4 additions and 0 deletions
  1. 4 0
      backend.py

+ 4 - 0
backend.py

@@ -141,6 +141,10 @@ def submit_wifi_form():
                 'privacy_comment'      : 'comment' in d.getall('privacy'),
                 'privacy_comment'      : 'comment' in d.getall('privacy'),
         })
         })
         DB.commit()
         DB.commit()
+
+        # Rebuild GeoJSON
+        build_geojson()
+
         return redirect(urlparse.urljoin(request.path,'thanks'))
         return redirect(urlparse.urljoin(request.path,'thanks'))
 
 
 @route('/thanks')
 @route('/thanks')