From 171357374ad731304bd0baec6110543811be16fd Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 17 Jan 2023 10:48:14 +0000 Subject: [PATCH] Alternative license spelling --- webapp_post.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp_post.py b/webapp_post.py index 49e98cf7c..f3850461e 100644 --- a/webapp_post.py +++ b/webapp_post.py @@ -1799,7 +1799,9 @@ def _get_content_license(post_json_object: {}) -> str: for item in post_json_object['object']['attachment']: if not item.get('name'): continue - if item['name'] != 'license': + name_lower = item['name'].lower() + if name_lower != 'license' and \ + name_lower != 'licence': continue if item.get('value'): value = item['value']