Skip to content
Snippets Groups Projects
Commit c5d45dc7 authored by Christophe Benz's avatar Christophe Benz
Browse files

Explain why datasets are ignored from category tree

parent 1b3aef93
No related branches found
No related tags found
No related merge requests found
Pipeline #382452 canceled with stages
in 14 minutes and 43 seconds
......@@ -404,10 +404,18 @@ def toc_element_to_category_tree(xml_element, dataset_json_stubs, dataset_codes_
):
dataset_code = xml_element.findtext("{*}code")
if dataset_code not in dataset_codes_to_convert:
log.debug(
"Ignoring the dataset %r from the category tree because it was not requested to be converted",
dataset_code,
)
return None
dataset_url = xml_element.findtext("{*}downloadLink[@format='sdmx']")
if not dataset_url:
log.debug(
"Ignoring the dataset %r from the category tree because it does not provide a SDMX download link",
dataset_code,
)
return None
dataset_name = xml_element.findtext("{*}title[@language='en']")
......
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