mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
No hidden SQL on canned query pages, closes #1411
This commit is contained in:
parent
ff253f5242
commit
4adca0d850
2 changed files with 12 additions and 1 deletions
|
|
@ -44,7 +44,7 @@
|
|||
<pre id="sql-query">{% if query %}{{ query.sql }}{% endif %}</pre>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<input type="hidden" name="sql" value="{% if query and query.sql %}{{ query.sql }}{% else %}select * from {{ tables[0].name|escape_sqlite }}{% endif %}">
|
||||
{% if not canned_query %}<input type="hidden" name="sql" value="{% if query and query.sql %}{{ query.sql }}{% else %}select * from {{ tables[0].name|escape_sqlite }}{% endif %}">{% endif %}
|
||||
<input type="hidden" name="_hide_sql" value="1">
|
||||
{% endif %}
|
||||
{% if named_parameter_values %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue