From a191f7d31babc09eb2868314ab8c51a716ec1d7f Mon Sep 17 00:00:00 2001 From: Samriti Sadhu Date: Mon, 13 Jan 2025 15:14:52 +0000 Subject: [PATCH] increasing the threshold --- application/templates/entity.html | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/application/templates/entity.html b/application/templates/entity.html index d842d0bf..67886dee 100644 --- a/application/templates/entity.html +++ b/application/templates/entity.html @@ -10,14 +10,9 @@ {% set is_truncated = false %} {% if row['geometry'] %} - {% if row['geometry']|length > 1000000 %} + {% if row['geometry']|length > 100000 %} {% set is_truncated = true %} - {% set truncated_geometry = row['geometry'][:1000000] %} - {% else %} - {% set truncated_geometry = row['geometry'] %} {% endif %} -{% else %} - {% set truncated_geometry = "" %} {% endif %} @@ -98,7 +93,7 @@

{{ row_name }}

{% if field == 'geometry' %} {% if row[field] is not none %} - {{ truncated_geometry }}{% if row[field]|length > 1000000 %}... Load More{% endif %} + {{ row[field][:100000] }}{% if row[field]|length > 100000 %}... Load More{% endif %} {% endif %}