aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-10-28 02:27:26 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-10-28 02:27:26 +0400
commit426fc71b25e3ba0572d8a294ef98c2302528a661 (patch)
tree09942c7e6a95e67c365a841e99e2bf492ea31029
parentClean Up Typing (diff)
Use `casefold` Instead Of `lower`
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--pydis_site/apps/content/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py
index 8e3b0bd7..5fa6353c 100644
--- a/pydis_site/apps/content/utils.py
+++ b/pydis_site/apps/content/utils.py
@@ -295,7 +295,7 @@ def get_tag_category(tags: list[Tag] | None = None, *, collapse_groups: bool) ->
data.append(group)
# Sort the tags, and return them in the proper format
- return {tag["title"]: tag for tag in sorted(data, key=lambda tag: tag["title"].lower())}
+ return {tag["title"]: tag for tag in sorted(data, key=lambda tag: tag["title"].casefold())}
def get_category_pages(path: Path) -> dict[str, dict]: