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

fix #12830

(cherry picked from commit 284c0080)
parent 0c1c2a49
Branches
Tags
3 merge requests!24fix #12830,!22Report master to develop,!18fix #12830
Pipeline #20643 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