mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Don't show '0 results' on error page, refs #619
This commit is contained in:
parent
ea5b237800
commit
f40d1b99d6
2 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table></div>
|
</table></div>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if not canned_write %}
|
{% if not canned_write and not error %}
|
||||||
<p class="zero-results">0 results</p>
|
<p class="zero-results">0 results</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -1410,6 +1410,7 @@ def test_query_error(app_client):
|
||||||
'<textarea id="sql-editor" name="sql">select * from notatable</textarea>'
|
'<textarea id="sql-editor" name="sql">select * from notatable</textarea>'
|
||||||
in html
|
in html
|
||||||
)
|
)
|
||||||
|
assert "0 results" not in html
|
||||||
|
|
||||||
|
|
||||||
def test_config_template_debug_on():
|
def test_config_template_debug_on():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue