summaryrefslogtreecommitdiff
path: root/app/builder/base.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2014-05-27 20:04:50 -0400
committerluxagraf <sng@luxagraf.net>2014-05-27 20:04:50 -0400
commit996cf7c9c58226d136532318c203d35e504f23b5 (patch)
treee2b5dbdf5500bb344296e2786f6b303c8dcfcba7 /app/builder/base.py
parent18de08b5dfcc40243bfe8531bce775d0cf106293 (diff)
switched to newer version of leaflet and fixed a few bugs in the build
of js files
Diffstat (limited to 'app/builder/base.py')
-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):