From 35eb9df5018fe68fba4aa680c59d5af9659c64d7 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 a670d09..51ff4f8 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
 
@@ -311,7 +310,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()
@@ -455,5 +458,4 @@ class ScraperView(APIView):
 
             sport.save()
 
-        # TODO: Maybe Redirect?
         return Response(status=200)
-- 
GitLab