Parcourir la source

Rebuild GeoJSON files on submit.

opi il y a 10 ans
Parent
commit
31e65fa3ce
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      backend.py

+ 4 - 0
backend.py

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