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
1b3aef93
Commit
1b3aef93
authored
2 years ago
by
Christophe Benz
Browse files
Options
Downloads
Patches
Plain Diff
Do not download datastructure of datasets without data URL
parent
8cd26603
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#360317
passed with stage
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
download.py
+3
-2
3 additions, 2 deletions
download.py
with
3 additions
and
2 deletions
download.py
+
3
−
2
View file @
1b3aef93
...
...
@@ -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
]
...
...
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