Skip to content

Commit

Permalink
feat: Add additional check if cc-license in dct:license
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch committed Aug 5, 2024
1 parent da86232 commit dfdc75c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/dcatapchharvest/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dfdc75c

Please sign in to comment.