From 256c5b7c6a1c7b38f00ce5955cc0f5b469a0b211 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 20 Jun 2024 20:01:53 +0000 Subject: Add default value for location and symbol Adding these in the DataTables column definitions is convenient because it means they don't need to be dealt with in the Python code --- gn2/wqflask/templates/search_result_page.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gn2/wqflask/templates/search_result_page.html b/gn2/wqflask/templates/search_result_page.html index 934b6a9d..6ef66bd4 100644 --- a/gn2/wqflask/templates/search_result_page.html +++ b/gn2/wqflask/templates/search_result_page.html @@ -224,7 +224,8 @@ 'type': "natural", 'width': "{{ max_widths.symbol * 8 }}px", 'targets': 3, - 'data': "symbol" + 'data': "symbol", + 'defaultContent': "N/A" }, { 'title': "Description", @@ -248,7 +249,8 @@ 'type': "natural-minus-na", 'width': "130px", 'targets': 5, - 'data': "location" + 'data': "location", + 'defaultContent': "N/A" }, { 'title': "
Mean
", -- cgit v1.2.3