summaryrefslogtreecommitdiff
path: root/app/locations/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/locations/build.py')
-rw-r--r--app/locations/build.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/locations/build.py b/app/locations/build.py
new file mode 100644
index 0000000..cf17c59
--- /dev/null
+++ b/app/locations/build.py
@@ -0,0 +1,12 @@
+
+ def build_map(self):
+ self.build_list_view(
+ base_path=reverse("map:maplist"),
+ paginate_by=1000000
+ )
+ response = self.client.get(reverse("map:mapdata"))
+ self.write_file("media/js/mainmap", response.content, 'js', '')
+
+def map_builder():
+ j = BuildJrnl("jrnl", "entry")
+ j.build_map()