From 996cf7c9c58226d136532318c203d35e504f23b5 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 27 May 2014 20:04:50 -0400 Subject: switched to newer version of leaflet and fixed a few bugs in the build of js files --- app/builder/base.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/builder/base.py') 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): -- cgit v1.2.3-70-g09d2