aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/urls.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-10-28 02:26:10 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-10-28 02:32:07 +0400
commit3940e34b89b67f1d45076bb2645f701e40d3357a (patch)
tree91f0db0e7e427f8b27bfd9318d48fa16ff3decd6 /pydis_site/apps/content/urls.py
parentImplicitly Close Client Using `with` (diff)
Clarify Code Intentions
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/content/urls.py')
-rw-r--r--pydis_site/apps/content/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pydis_site/apps/content/urls.py b/pydis_site/apps/content/urls.py
index 163d05bc..a7695a27 100644
--- a/pydis_site/apps/content/urls.py
+++ b/pydis_site/apps/content/urls.py
@@ -40,6 +40,8 @@ def get_all_pages() -> DISTILL_RETURN:
def get_all_tags() -> DISTILL_RETURN:
"""Return all tag names and groups in static builds."""
+ # We instantiate the set with None here to make filtering it out later easier
+ # whether it was added in the loop or not
groups = {None}
for tag in utils.get_tags_static():
groups.add(tag.group)