From fb8e29a4bf4653b931f69046c6f11a42fbbdafcf Mon Sep 17 00:00:00 2001 From: Francesco Frassinelli Date: Wed, 28 Feb 2024 11:03:50 +0100 Subject: [PATCH] Skip non-public datasets --- update_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update_config.py b/update_config.py index 1cb426f..682f7dc 100755 --- a/update_config.py +++ b/update_config.py @@ -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']}",