Skip to content
Snippets Groups Projects
Commit 9621e0ce authored by borzechof99's avatar borzechof99 :whale2:
Browse files

Adhere to Linter

parent 29ac1275
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,13 @@ ...@@ -2,14 +2,13 @@
Defines the views for the API Defines the views for the API
""" """
# from django.shortcuts import render import copy
from rest_framework import viewsets from rest_framework import viewsets
from rest_framework.views import APIView from rest_framework.views import APIView
from rest_framework.response import Response from rest_framework.response import Response
from django.shortcuts import get_object_or_404 from django.shortcuts import get_object_or_404
from django.http import HttpResponse from django.http import HttpResponse
from .pagination import PageNumberWithPageSizePagination from .pagination import PageNumberWithPageSizePagination
import copy
from .course_scraper.course_scraper import scraping from .course_scraper.course_scraper import scraping
...@@ -313,7 +312,11 @@ class ScraperView(APIView): ...@@ -313,7 +312,11 @@ class ScraperView(APIView):
View for the Scraper, including GET and POST 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 # Scrape Sports from their website
scraped_sports = scraping() scraped_sports = scraping()
...@@ -457,5 +460,4 @@ class ScraperView(APIView): ...@@ -457,5 +460,4 @@ class ScraperView(APIView):
sport.save() sport.save()
# TODO: Maybe Redirect?
return Response(status=200) return Response(status=200)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment