From 9621e0ce7bb1ff5598ce972115477216e4a1bcd6 Mon Sep 17 00:00:00 2001
From: borzechof99 <borzechof99@mi.fu-berlin.de>
Date: Sat, 26 Jun 2021 18:37:07 +0200
Subject: [PATCH] Adhere to Linter

Co-authored-by: Dominik Pietrak <dominip89@mi.fu-berlin.de>
---
 unisportomat/quiz/views.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/unisportomat/quiz/views.py b/unisportomat/quiz/views.py
index 510b64d..29bc2fc 100644
--- a/unisportomat/quiz/views.py
+++ b/unisportomat/quiz/views.py
@@ -2,14 +2,13 @@
 Defines the views for the API
 """
 
-# from django.shortcuts import render
+import copy
 from rest_framework import viewsets
 from rest_framework.views import APIView
 from rest_framework.response import Response
 from django.shortcuts import get_object_or_404
 from django.http import HttpResponse
 from .pagination import PageNumberWithPageSizePagination
-import copy
 
 from .course_scraper.course_scraper import scraping
 
@@ -313,7 +312,11 @@ class ScraperView(APIView):
     View for the Scraper, including GET and POST
     """
 
-    def get(self, request):
+    def get(self, request):  # pylint: disable=too-many-locals
+        """
+        Scrapes the Sports currently on the default website,
+        and sends a diff of the current sports and the scraped ones
+        """
 
         # Scrape Sports from their website
         scraped_sports = scraping()
@@ -457,5 +460,4 @@ class ScraperView(APIView):
 
             sport.save()
 
-        # TODO: Maybe Redirect?
         return Response(status=200)
-- 
GitLab