aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/utils.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-08-16 23:45:25 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-08-16 23:45:25 +0400
commit92a42694b6ad1a29e5a21e0b3e57639528837113 (patch)
treee5feabe3e9336b286ba7b0add1987b938320639e /pydis_site/apps/content/utils.py
parentFix Tag Metadata For Static Builds (diff)
Fix Tests For Tag Metadata
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/apps/content/utils.py')
-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 e4a24a73..63f1c41c 100644
--- a/pydis_site/apps/content/utils.py
+++ b/pydis_site/apps/content/utils.py
@@ -130,7 +130,7 @@ def fetch_tags() -> list[Tag]:
def set_tag_commit(tag: Tag) -> None:
"""Fetch commit information from the API, and save it for the tag."""
- if settings.STATIC_BUILD:
+ if settings.STATIC_BUILD: # pragma: no cover
# Static builds request every page during build, which can ratelimit it.
# Instead, we return some fake data.
tag.last_commit = Commit(