From 56b7cbd351fcf2850a8f840293bea1ca007ea3ba Mon Sep 17 00:00:00 2001 From: Jeremiah Boby Date: Wed, 10 Jul 2019 02:45:41 +0100 Subject: Teach new lint rules to old code --- pydis_site/apps/home/views/home.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'pydis_site/apps/home/views/home.py') diff --git a/pydis_site/apps/home/views/home.py b/pydis_site/apps/home/views/home.py index e4daf380..87f423aa 100644 --- a/pydis_site/apps/home/views/home.py +++ b/pydis_site/apps/home/views/home.py @@ -28,7 +28,6 @@ class HomeView(View): def _get_api_data(self) -> Dict[str, Dict[str, str]]: """Call the GitHub API and get information about our repos.""" - repo_dict = {repo_name: {} for repo_name in self.repos} # Fetch the data from the GitHub API @@ -51,7 +50,6 @@ class HomeView(View): def _get_repo_data(self) -> List[RepositoryMetadata]: """Build a list of RepositoryMetadata objects that we can use to populate the front page.""" - # Try to get site data from the cache try: repo_data = RepositoryMetadata.objects.get(repo_name="python-discord/site") @@ -110,6 +108,5 @@ class HomeView(View): def get(self, request: WSGIRequest) -> HttpResponse: """Collect repo data and render the homepage view""" - repo_data = self._get_repo_data() return render(request, "home/index.html", {"repo_data": repo_data}) -- cgit v1.2.3