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

Do not download datastructure of datasets without data URL

parent 8cd26603
No related branches found
No related tags found
No related merge requests found
Pipeline #360317 passed with stage
in 43 seconds
......@@ -132,8 +132,9 @@ def main():
)
continue
dataset_url = leaf_element.findtext('./nt:downloadLink[@format="sdmx"]', namespaces=nsmap)
if dataset_url:
datasets.add((dataset_code, dataset_url))
if not dataset_url:
continue
datasets.add((dataset_code, dataset_url))
datastructure_url = leaf_element.findtext('./nt:metadata[@format="sdmx"]', namespaces=nsmap)
if datastructure_url:
datastructure_code = datastructure_url.rsplit("/", 1)[-1].split(".", 1)[0]
......
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