diff --git a/datasette/app.py b/datasette/app.py index 79ce012e..b6a3498a 100644 --- a/datasette/app.py +++ b/datasette/app.py @@ -79,6 +79,7 @@ class RenderMixin(HTTPMethodView): **context, **{ 'app_css_hash': self.ds.app_css_hash(), 'select_templates': select_templates, + 'zip': zip, } }) ) diff --git a/datasette/templates/query.html b/datasette/templates/query.html index 3887fadd..3daf5c7f 100644 --- a/datasette/templates/query.html +++ b/datasette/templates/query.html @@ -44,14 +44,14 @@
| {{ column }} | {% endfor %} + {% for column in columns %}{{ column }} | {% endfor %}
|---|---|
| {% if td == None %}{{ " "|safe }}{% else %}{{ td }}{% endif %} | + {% for column, td in zip(columns, row) %} +{% if td == None %}{{ " "|safe }}{% else %}{{ td }}{% endif %} | {% endfor %}