From 3651eedf20b86ad30f510bf762fb25790bb3560c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 1 May 2019 22:20:24 -0700 Subject: [PATCH] Show 'many rows' if count times out, refs #420 --- datasette/templates/database.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasette/templates/database.html b/datasette/templates/database.html index 0e80c8b6..81c4ffd3 100644 --- a/datasette/templates/database.html +++ b/datasette/templates/database.html @@ -29,7 +29,7 @@

{{ table.name }}{% if table.hidden %} (hidden){% endif %}

{% for column in table.columns[:9] %}{{ column }}{% if not loop.last %}, {% endif %}{% endfor %}{% if table.columns|length > 9 %}...{% endif %}

-

{{ "{:,}".format(table.count) }} row{% if table.count == 1 %}{% else %}s{% endif %}

+

{% if table.count is none %}Many rows{% else %}{{ "{:,}".format(table.count) }} row{% if table.count == 1 %}{% else %}s{% endif %}{% endif %}

{% endif %} {% endfor %}