From a32fae52425fe6955be2be013f6149c90cc86e61 Mon Sep 17 00:00:00 2001 From: Shom770 <82843611+Shom770@users.noreply.github.com> Date: Sat, 6 Nov 2021 11:22:13 -0400 Subject: lowering challenges for compatibility with uppercase languages --- bot/exts/utilities/challenges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/exts/utilities/challenges.py') diff --git a/bot/exts/utilities/challenges.py b/bot/exts/utilities/challenges.py index e4738455..1f296390 100644 --- a/bot/exts/utilities/challenges.py +++ b/bot/exts/utilities/challenges.py @@ -278,7 +278,7 @@ class Challenges(commands.Cog): if language.lower() not in SUPPORTED_LANGUAGES["stable"] + SUPPORTED_LANGUAGES["beta"]: raise commands.BadArgument("This is not a recognized language on codewars.com!") - get_kata_link = f"https://codewars.com/kata/search/{language}" + get_kata_link = f"https://codewars.com/kata/search/{language.lower()}" params = {} if query is not None: -- cgit v1.2.3