From 1fd66b82d6233c92285db0bb3a791656dd9ea4b2 Mon Sep 17 00:00:00 2001
From: borzechof99 <borzechof99@mi.fu-berlin.de>
Date: Sun, 27 Jun 2021 11:42:44 +0200
Subject: [PATCH] Remove unneeded Code

---
 unisportomat/quiz/views.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/unisportomat/quiz/views.py b/unisportomat/quiz/views.py
index 29bc2fc..06de1b3 100644
--- a/unisportomat/quiz/views.py
+++ b/unisportomat/quiz/views.py
@@ -321,11 +321,6 @@ class ScraperView(APIView):
         # Scrape Sports from their website
         scraped_sports = scraping()
 
-        # Reformat scraped Sports so they have a name and an url field
-        new_sport_list = []
-        for sport_name, sport_url in scraped_sports.items():
-            new_sport_list.append({"name": sport_name, "url": sport_url})
-
         # Iterate through DB Sport entries to see which ones are in the new Sport list etc
         diff_list = []
 
-- 
GitLab