Commit aec3a69d authored by Bruno Duyé's avatar Bruno Duyé
Browse files

Fix #660: crash when trying to get dimensions defined in dataset but not used in current series

parent 8c0b5cd9
Pipeline #229035 passed with stage
in 41 seconds
......@@ -231,7 +231,8 @@ def fetch_series_by_api_link(api_link, max_nb_series=None,
for dim_code in dataset_dimensions['dimensions_codes_order']}
# Add dimensions values labels to current series
if 'dimensions_values_labels' in dataset_dimensions:
for dimension_code, dimension_label in dataset_dimensions_labels.items():
for dimension_code in series['dimensions']:
dimension_label = dataset_dimensions_labels[dimension_code]
dimension_value_code = series_dims_by_dataset_code[complete_dataset_code][series['series_code']][dimension_code]
flat_series[dimension_label] = dict(dataset_dimensions['dimensions_values_labels']
[dimension_code])[dimension_value_code]
......
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