Skip to content
Snippets Groups Projects
Commit 72a0785b authored by Damien DESPRES's avatar Damien DESPRES
Browse files

Merge branch 'cherry-pick-284c0080' into 'master'

fix #12830

See merge request !18
parents 0c1c2a49 f11dfa18
Branches
Tags
3 merge requests!24fix #12830,!22Report master to develop,!18fix #12830
Pipeline #20645 failed
......@@ -187,7 +187,7 @@ def process_record( in_record, working_directory, credentials ):
out_record['metadata-fr']['license'] = 'unknown'
if 'legalConstraints' in out_record['metadata-fr'].keys():
for el in out_record['metadata-fr']['legalConstraints']:
if "licence" in el.lower() or "accord" in el.lower():
if ("licence" in el.lower() or "accord" in el.lower()) and not ("http" in el.lower()):
out_record['metadata-fr']['license'] = el
if 'resourceConstraints' in out_record['metadata-fr'].keys() and type(out_record['metadata-fr']['resourceConstraints']) is str:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment