From ad1414676c1f046f8979df31603a725ae134f0f4 Mon Sep 17 00:00:00 2001 From: Alice Butcher Date: Mon, 8 Jul 2024 13:29:58 +0100 Subject: [PATCH] fix: get mss status from source cache --- ckanext/nhm/lib/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ckanext/nhm/lib/utils.py b/ckanext/nhm/lib/utils.py index 490a05c4..01278043 100644 --- a/ckanext/nhm/lib/utils.py +++ b/ckanext/nhm/lib/utils.py @@ -21,7 +21,9 @@ def get_iiif_status(): health['status'] = response_json.get('status') mss = response_json.get('profiles', {}).get('mss', {}) - health['specimens'] = mss.get('mss_status', {}).get('status', ':(') + health['specimens'] = ( + mss.get('source_cache', {}).get('mss_status', {}).get('status', ':(') + ) health['es'] = mss.get('es', {'status': 'red', 'response_time': None}) return health