From dfdc75ca65362ef6bb1ca8f7ab3067ad03924b86 Mon Sep 17 00:00:00 2001 From: kovalch Date: Mon, 5 Aug 2024 09:49:20 +0200 Subject: [PATCH] feat: Add additional check if cc-license in dct:license --- ckanext/dcatapchharvest/profiles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ckanext/dcatapchharvest/profiles.py b/ckanext/dcatapchharvest/profiles.py index 7b1f392..49ce791 100644 --- a/ckanext/dcatapchharvest/profiles.py +++ b/ckanext/dcatapchharvest/profiles.py @@ -646,6 +646,8 @@ def parse_dataset(self, dataset_dict, dataset_ref): # noqa if 'cc' in license and 'cc' not in rights: resource_dict['license'] = rights resource_dict['rights'] = license + elif 'cc' in license and 'cc' in rights: + resource_dict['license'] = None else: resource_dict['license'] = None resource_dict['rights'] = None