Commit 1f98b40f authored by Bruno Duyé's avatar Bruno Duyé

Download: remove dimension_value_code key when None

parent 318ff115
......@@ -104,10 +104,10 @@ def main():
dataset_filename = slugify(dataset_code) + dimension_value_code_str + '.json'
dataset_filepath = os.path.join(appendix_path, dataset_filename)
write_json_file(dataset_filepath, dataset_observations_json)
dataset_json.append(toolz.valfilter(lambda e: e, { # filter None values{
'dimension_value_code': dimension_value_code,
'filename': dataset_filename,
datasets_json.append(toolz.valfilter(lambda e: e, { # filter None values
'dataset_code': dataset_code,
'dimension_label': appendix_dict['dimension_label'] if appendix_dict['cut_on_dimension'] else None,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment