Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
No need to pretty-print GeoJSON, refs #285
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 15, 2021
1 parent 3101d5e commit 046df24
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions vaccinate/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import pathlib
import random
import textwrap
from datetime import datetime, timedelta
from typing import List, Optional

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 046df24

Please sign in to comment.