From 046df24052ae6144d5cf70cf63932024d775b767 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 15 Apr 2021 10:49:33 -0700 Subject: [PATCH] No need to pretty-print GeoJSON, refs #285 --- vaccinate/api/views.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/vaccinate/api/views.py b/vaccinate/api/views.py index 2732bb5..7e6ad9a 100644 --- a/vaccinate/api/views.py +++ b/vaccinate/api/views.py @@ -2,7 +2,6 @@ import os import pathlib import random -import textwrap from datetime import datetime, timedelta from typing import List, Optional @@ -788,13 +787,7 @@ def export_mapbox_geojson(request): limit = None if request.GET.get("limit", "").isdigit(): limit = int(request.GET["limit"]) - start = textwrap.dedent( - """ - { - "type": "FeatureCollection", - "features": [ - """ - ) + start = '{"type": "FeatureCollection", "features": [' def chunks(): yield start