Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eurostat-fetcher
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dbnomics-fetchers
eurostat-fetcher
Commits
c5d45dc7
Commit
c5d45dc7
authored
2 years ago
by
Christophe Benz
Browse files
Options
Downloads
Patches
Plain Diff
Explain why datasets are ignored from category tree
parent
1b3aef93
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#382452
canceled with stages
in 14 minutes and 43 seconds
Changes
1
Pipelines
328
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
convert.py
+8
-0
8 additions, 0 deletions
convert.py
with
8 additions
and
0 deletions
convert.py
+
8
−
0
View file @
c5d45dc7
...
...
@@ -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
'
]
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment