From 1fbc2e2fd507fd6961997f5ba85190515cc0ddf2 Mon Sep 17 00:00:00 2001 From: Matthew Evans Date: Fri, 8 Jul 2022 20:23:20 +0100 Subject: [PATCH] Fix rendering of aggregation details --- make_ghpages/make_pages.py | 2 +- make_ghpages/mod/templates/singlepage.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/make_ghpages/make_pages.py b/make_ghpages/make_pages.py index abd2488d8..408871454 100644 --- a/make_ghpages/make_pages.py +++ b/make_ghpages/make_pages.py @@ -199,7 +199,7 @@ def get_index_metadb_data(base_url): results["failure_messages"] = [] results["success_count"] = 0 results["internal_failure_count"] = 0 - results["no_aggregate_reason"] = subdb["attributes"].get("no_aggregate_reason", "No reason given") + results["no_aggregate_reason"] = subdb["attributes"].get("no_aggregate_reason", "No details given") else: v1_url = url.strip("/") + "/v1" if not url.endswith("/v1") else "" diff --git a/make_ghpages/mod/templates/singlepage.html b/make_ghpages/mod/templates/singlepage.html index 79392dc51..70e6c5cf3 100644 --- a/make_ghpages/mod/templates/singlepage.html +++ b/make_ghpages/mod/templates/singlepage.html @@ -94,7 +94,7 @@

Databases served by this provider

{% else %} Aggregation is discouraged for this databaseResults of validation {{ index_metadb.subdb_validation[subdb.attributes.base_url]['aggregate'] }} - {% if index_metadb.subdb_validation[subdb.attributes.base_url]['no_aggregate_reason'] is not none %}} + {% if index_metadb.subdb_validation[subdb.attributes.base_url]['no_aggregate_reason'] is not none %} : {{ index_metadb.subdb_validation[subdb.attributes.base_url]['no_aggregate_reason'] }} {% endif %}