From e9492368d491e952708dc3ed93070f66c42f3e60 Mon Sep 17 00:00:00 2001 From: Dan Mihaila Date: Wed, 4 Dec 2024 17:54:56 +0200 Subject: [PATCH] HDX-10398 remove stats.state from output --- .../ckanext/hdx_org_group/helpers/country_helper.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ckanext-hdx_org_group/ckanext/hdx_org_group/helpers/country_helper.py b/ckanext-hdx_org_group/ckanext/hdx_org_group/helpers/country_helper.py index 70fb302f50..a84349f603 100644 --- a/ckanext-hdx_org_group/ckanext/hdx_org_group/helpers/country_helper.py +++ b/ckanext-hdx_org_group/ckanext/hdx_org_group/helpers/country_helper.py @@ -354,10 +354,11 @@ def hdx_replace_datagrid_labels(data_completeness, grp_dict): updated_data = _transform_data_completeness(data_completeness) # Remove specified keys updated_data = remove_keys_from_dict(updated_data, DATA_COMPLETENESS_KEYS_TBR_LIST) - updated_data.pop("inherits_from", None) - updated_data.pop("name", None) - updated_data.pop("title", None) - updated_data.pop("description", None) + updated_data.pop('inherits_from', None) + updated_data.pop('name', None) + updated_data.pop('title', None) + updated_data.pop('description', None) + updated_data['stats'].pop('state', None) updated_data['date'] = datetime.now() updated_data['iso3'] = grp_dict.get('name') updated_data['title'] = grp_dict.get('title') or grp_dict.get('display_name')