From f59c840e7db8870afcdeba7a53bdea07bb674334 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sun, 19 Nov 2017 07:54:50 -0800 Subject: [PATCH] Show row count for custom SQL queries --- datasette/templates/database.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/datasette/templates/database.html b/datasette/templates/database.html index b0aff691..cdf128b8 100644 --- a/datasette/templates/database.html +++ b/datasette/templates/database.html @@ -44,11 +44,8 @@

-{% if truncated %} -
These results were truncated. You will need to apply OFFSET/LIMIT to see the whole result set.
-{% endif %} - {% if rows %} +

Returned {% if truncated %}more than {% endif %}{{ "{:,}".format(rows|length) }} row{% if rows|length == 1 %}{% else %}s{% endif %}