diff options
author | 2022-08-14 07:14:50 +0200 | |
---|---|---|
committer | 2022-08-14 07:14:50 +0200 | |
commit | 5aeffa5ab4dd8b251d2ae742d1a1e2bf3ba461c7 (patch) | |
tree | 466b572d3effea8a15ee138c7adfd64336960e00 /pydis_site/apps/content/utils.py | |
parent | Change Hyperlink Color On Hover (diff) |
Update Tests For Tag Groups
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/content/utils.py')
-rw-r--r-- | pydis_site/apps/content/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py index da6a024d..11100ba5 100644 --- a/pydis_site/apps/content/utils.py +++ b/pydis_site/apps/content/utils.py @@ -48,7 +48,7 @@ def get_tags_static() -> list[Tag]: This will return a cached value, so it should only be used for static builds. """ tags = fetch_tags() - for tag in tags[3:5]: + for tag in tags[3:5]: # pragma: no cover tag.group = "very-cool-group" return tags @@ -190,6 +190,7 @@ def get_tag_category( # Flatten group description into a single string for group in groups.values(): + # If the following string is updated, make sure to update it in the frontend JS as well group["description"] = "Contains the following tags: " + ", ".join(group["description"]) data.append(group) |