Commit 2a996f88 authored by Bruno Duyé's avatar Bruno Duyé Committed by Bruno Duyé
Browse files

Temporary fix (waiting for #372 to be closed): don't crash when API return...

Temporary fix (waiting for #372 to be closed): don't crash when API return lists in `dimensions_values_labels` key
parent d0c4d925
Pipeline #85404 failed with stage
in 28 seconds
......@@ -211,7 +211,8 @@ def fetch_series_by_api_link(api_link, max_nb_series=None,
dataset_dimensions = datasets_dimensions[complete_dataset_code]
for dimension_code, dimension_label in dataset_dimensions['dimensions_labels'].items():
dimension_value_code = series_dims_by_dataset_code[complete_dataset_code][dimension_code]
flat_series[dimension_label] = dataset_dimensions['dimensions_values_labels'][dimension_code][dimension_value_code]
flat_series[dimension_label] = dict(dataset_dimensions['dimensions_values_labels']
# Only applies if filters are used.
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