From e1bad8b9e16b4335f32a481b01a731c4a33c564d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 17 Jan 2023 10:50:34 +0000 Subject: [PATCH] Could be a phrase containing license --- webapp_post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp_post.py b/webapp_post.py index f3850461e..8208250d1 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -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']