From 33d7892e1321d415271b7cad64717f76c342ebfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Sch=C3=B6nberg?= Date: Sun, 14 Aug 2022 21:48:49 +0200 Subject: [PATCH] Fix choosing SPDX license during plugin init The keys used to be lower case, but were changed to mixed case in this commit: 068e268c632b90e5e4f2954f3eaf3aa9342c240c The identfier are now used as inputted by the user. --- maubot/cli/util/spdx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maubot/cli/util/spdx.py b/maubot/cli/util/spdx.py index 10508b3..69f58b7 100644 --- a/maubot/cli/util/spdx.py +++ b/maubot/cli/util/spdx.py @@ -36,10 +36,10 @@ def load() -> None: def get(id: str) -> dict[str, str]: if not spdx_list: load() - return spdx_list[id.lower()] + return spdx_list[id] def valid(id: str) -> bool: if not spdx_list: load() - return id.lower() in spdx_list + return id in spdx_list