kopia lustrzana https://github.com/simonw/datasette
Show row count for custom SQL queries
rodzic
80ada4dbb3
commit
f59c840e7d
|
@ -44,11 +44,8 @@
|
|||
<p><input type="submit" value="Run SQL"></p>
|
||||
</form>
|
||||
|
||||
{% if truncated %}
|
||||
<div style="padding: 1em; margin: 1em 0; border: 3px solid red;">These results were truncated. You will need to apply OFFSET/LIMIT to see the whole result set.</div>
|
||||
{% endif %}
|
||||
|
||||
{% if rows %}
|
||||
<p>Returned {% if truncated %}more than {% endif %}{{ "{:,}".format(rows|length) }} row{% if rows|length == 1 %}{% else %}s{% endif %}</p>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
|
Ładowanie…
Reference in New Issue