aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Shom770 <[email protected]>2021-11-06 11:22:13 -0400
committerGravatar Shom770 <[email protected]>2021-11-06 11:22:13 -0400
commita32fae52425fe6955be2be013f6149c90cc86e61 (patch)
treea73290d1e2bc9305ec8060cd38a644d71ee2f6e4
parentremoved repeating query is None (diff)
lowering challenges for compatibility with uppercase languages
-rw-r--r--bot/exts/utilities/challenges.py2
1 files changed, 1 insertions, 1 deletions
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: