Fix broken CSV/JSON export on query page, refs #1010

This commit is contained in:
Simon Willison 2020-10-09 17:39:45 -07:00
commit 9f6dd985bc
2 changed files with 8 additions and 1 deletions

View file

@ -58,7 +58,7 @@
</form>
{% if display_rows %}
<p class="export-links">This data as {% for name, url in renderers.items() %}<a href="{{ base_url }}{{ url }}">{{ name }}</a>{{ ", " if not loop.last }}{% endfor %}, <a href="{{ base_url }}{{ url_csv }}">CSV</a></p>
<p class="export-links">This data as {% for name, url in renderers.items() %}<a href="{{ url }}">{{ name }}</a>{{ ", " if not loop.last }}{% endfor %}, <a href="{{ url_csv }}">CSV</a></p>
<table class="rows-and-columns">
<thead>
<tr>