From 978cef253e8ab3b6210fad4226475174e0ba99fe 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 51ff4f8..7146a55 100644 --- a/unisportomat/quiz/views.py +++ b/unisportomat/quiz/views.py @@ -319,11 +319,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