Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Sep 17, 2024
1 parent 9746cb8 commit 41e28d5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions downloads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,6 @@ class ReleaseFeed(Feed):
title = "Python Releases"
description = "Latest Python releases from Python.org"

@staticmethod
def link() -> str:
"""Return the URL to the main downloads page."""
return reverse("downloads:download")

def items(self) -> list[dict[str, Any]]:
"""Return the latest Python releases."""
return Release.objects.filter(is_published=True).order_by("-release_date")[:10]
Expand All @@ -185,10 +180,6 @@ def item_description(self, item: Release) -> str:
"""Return the release version and release date as the item description."""
return f"Version: {item.version}, Release Date: {item.release_date}"

def item_link(self, item: Release) -> str:
"""Return the URL to the release page on python.org."""
return reverse("downloads:download_release_detail", args=[item.slug])

def item_pubdate(self, item: Release) -> datetime | None:
"""Return the release date as the item publication date."""
if item.release_date:
Expand Down

0 comments on commit 41e28d5

Please sign in to comment.