From 912fd36e7470f5c9a5c4bf79e8cc7a28e049f818 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 12 Dec 2021 07:15:17 -0500 Subject: [PATCH] fix spotify import --- common/scrapers/spotify.py | 2 ++ common/templates/partial/_navbar.html | 2 +- users/views.py | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/scrapers/spotify.py b/common/scrapers/spotify.py index fbab822c..dfd60b51 100644 --- a/common/scrapers/spotify.py +++ b/common/scrapers/spotify.py @@ -6,6 +6,8 @@ from music.models import Album, Song from music.forms import AlbumForm, SongForm from django.conf import settings from common.scraper import * +from threading import Thread +from django.core.exceptions import ObjectDoesNotExist spotify_token = None diff --git a/common/templates/partial/_navbar.html b/common/templates/partial/_navbar.html index a364693c..c86b0fca 100644 --- a/common/templates/partial/_navbar.html +++ b/common/templates/partial/_navbar.html @@ -12,7 +12,7 @@