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 a25ff25 commit 9746cb8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions downloads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from datetime import datetime

from django.core.handlers.wsgi import WSGIRequest
from django.db.models import Prefetch
from django.urls import reverse
from django.utils import timezone
Expand Down Expand Up @@ -174,11 +173,6 @@ def link() -> str:
"""Return the URL to the main downloads page."""
return reverse("downloads:download")

def get_feed(self, obj: Any, request: WSGIRequest) -> Feed:
"""Store the request object for later use."""
self.request = request
return super().get_feed(obj, request)

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 Down

0 comments on commit 9746cb8

Please sign in to comment.