Commit 6856352a authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA
Browse files

#11163 License avec accord dans le nom

parent a926c64a
Pipeline #14698 passed with stages
in 58 seconds
......@@ -184,7 +184,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():
if "licence" in el.lower() or "accord" 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:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment