Skip to content

Commit

Permalink
Merge pull request #7 from NINAnor/ignore-sensitive-datasets
Browse files Browse the repository at this point in the history
Skip non-public datasets
  • Loading branch information
frafra authored Feb 28, 2024
2 parents 6e1ca73 + fb8e29a commit 9b0ac07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions update_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def main(cfg):
with open_dict(cfg):
object_types = requests.get(urljoin(nvdb.URL, "/vegobjekttyper")).json()
for object_type in object_types:
if object_type["sensitiv"]:
continue
resource = {
"type": "collection",
"title": f"[NVDB] {object_type['navn']}",
Expand Down

0 comments on commit 9b0ac07

Please sign in to comment.