summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/base.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index cd51265..017cbd6 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -217,15 +217,10 @@ class BuildProjects(Build):
self.write_file(path, t)
def build_project_data(self):
- from projects.shortcuts import render_to_geojson
model = get_model('projects', 'NationalParks')
for park in model.objects.filter(visited__exact=True):
- qs = model.objects.filter(pk=park.id)
- json = render_to_geojson(qs)
- json = str(json)
- print(json)
- json = "\n".join(json.splitlines()[3:])
path = 'projects/data/natparks/'
+ json = park.mpoly.json
self.write_file(path, json, 'json', park.id)
def build_np_basejs(self):