Fix choosing SPDX license during plugin init

The keys used to be lower case, but were changed to mixed case
in this commit:

068e268c63

The identfier are now used as inputted by the user.
This commit is contained in:
Tobias Schönberg 2022-08-14 21:48:49 +02:00
parent 1fe53b4c56
commit 33d7892e13

View file

@ -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