diff options
author | 2024-02-03 00:50:43 -0800 | |
---|---|---|
committer | 2024-02-03 00:50:43 -0800 | |
commit | ad2410ef24e97742bc22f0d8775a0f37a5bf2db5 (patch) | |
tree | cce3c380e6b695d11dcb65ee65411f6f654e2be3 /pydis_site/apps/content/utils.py | |
parent | Migrate mailing lists to their own API endpoints (diff) | |
parent | Merge pull request #1220 from python-discord/dependabot/pip/ruff-0.2.0 (diff) |
Merge branch 'main' into mailing-list-model
Diffstat (limited to 'pydis_site/apps/content/utils.py')
-rw-r--r-- | pydis_site/apps/content/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pydis_site/apps/content/utils.py b/pydis_site/apps/content/utils.py index cfd73d67..5a146e10 100644 --- a/pydis_site/apps/content/utils.py +++ b/pydis_site/apps/content/utils.py @@ -107,7 +107,7 @@ def fetch_tags() -> list[Tag]: for file in repo.getmembers(): if "/bot/resources/tags" in file.path: included.append(file) - repo.extractall(folder, included) + repo.extractall(folder, included) # noqa: S202 for tag_file in Path(folder).rglob("*.md"): name = tag_file.name @@ -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() |