Could be a phrase containing license

merge-requests/30/head
Bob Mottram 2023-01-17 10:50:34 +00:00
parent 171357374a
commit e1bad8b9e1
1 changed files with 2 additions and 2 deletions

View File

@ -1800,8 +1800,8 @@ def _get_content_license(post_json_object: {}) -> str:
if not item.get('name'):
continue
name_lower = item['name'].lower()
if name_lower != 'license' and \
name_lower != 'licence':
if 'license' not in name_lower and \
'licence' not in name_lower:
continue
if item.get('value'):
value = item['value']