aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/content/utils.py
diff options
context:
space:
mode:
authorGravatar hedy <[email protected]>2024-01-14 17:01:03 +0800
committerGravatar hedy <[email protected]>2024-01-14 17:01:03 +0800
commit9967809f985f57c36b5fc60d0c6f6e62427a98bb (patch)
treeba01a53453ac559071d1b0ca3983d6075e2ebae5 /pydis_site/apps/content/utils.py
parentDark: Fix tag colors in resources page (diff)
parentMerge branch 'main' into gdwr-dark-theme (diff)
Merge branch 'gdwr-dark-theme' of github.com:hedyhli/pydis-site into gdwr-dark-theme
Diffstat (limited to 'pydis_site/apps/content/utils.py')
-rw-r--r--pydis_site/apps/content/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py
index cfd73d67..9c949a93 100644
--- a/pydis_site/apps/content/utils.py
+++ b/pydis_site/apps/content/utils.py
@@ -206,9 +206,9 @@ def record_tags(tags: list[Tag]) -> None:
# pretend it's previous state is the current state
old_tag = new_tag
- if old_tag.sha == new_tag.sha and old_tag.last_commit is not None:
+ if old_tag.sha == new_tag.sha and old_tag.last_commit_id is not None:
# We still have an up-to-date commit entry
- new_tag.last_commit = old_tag.last_commit
+ new_tag.last_commit_id = old_tag.last_commit_id
new_tag.save()