Commit 2b602a52 authored by Christophe Benz's avatar Christophe Benz

Use series_code column with "_filtered" suffix

parent 7ea91171
......@@ -192,7 +192,6 @@ def fetch_series_by_api_link(api_link, max_nb_series=None,
if filters:
common_columns.insert(common_columns.index("period") + 1, "period_middle_day")
common_columns.insert(common_columns.index("series_code") + 1, "source_series_code")
common_columns.append("filtered")
filtered_series_list = [
{**series, "filtered": True}
......@@ -340,7 +339,7 @@ def normalize_editor_series(series, dbnomics_series):
"provider_code": dbnomics_series["provider_code"],
"dataset_code": dbnomics_series["dataset_code"],
"dataset_name": dbnomics_series.get("dataset_name"),
"source_series_code": dbnomics_series["series_code"],
"series_code": "{}_filtered".format(dbnomics_series["series_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