Skip to content

Commit

Permalink
HDX-10398 remove stats.state from output
Browse files Browse the repository at this point in the history
  • Loading branch information
danmihaila committed Dec 4, 2024
1 parent 0254aa1 commit e949236
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit e949236

Please sign in to comment.