From c2409fee789fd45b48a30a3bb1339f66221018b2 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Mon, 16 Sep 2024 16:01:53 -0500 Subject: [PATCH] fix: remove staticmethod chore: apply formatting and ruuuuuff --- downloads/views.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/downloads/views.py b/downloads/views.py index 4a14040c2..ccadcdb1a 100644 --- a/downloads/views.py +++ b/downloads/views.py @@ -176,17 +176,16 @@ class ReleaseFeed(Feed): @staticmethod def link() -> str: """Return the URL to the main downloads page.""" - return reverse('downloads:download') + 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) - @staticmethod - def items() -> list[dict[str, Any]]: + def items(self) -> list[dict[str, Any]]: """Return the latest Python releases.""" - return Release.objects.filter(is_published=True).order_by('-release_date')[:10] + return Release.objects.filter(is_published=True).order_by("-release_date")[:10] @staticmethod def _fetch_releases(url: str) -> list[dict[str, Any]]: