fix spotify import
This commit is contained in:
parent
4f504288ca
commit
912fd36e74
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div class="navbar__search-box">
|
||||
<!-- <input type="search" class="" name="q" id="searchInput" required="true" value="{% for v in request.GET.values %}{{ v }}{% endfor %}" -->
|
||||
<input type="search" class="" name="q" id="searchInput" required="true" value="{% if request.GET.q %}{{ request.GET.q }}{% endif %}"
|
||||
placeholder="搜索书影音游戏,或输入豆瓣/Goodreads/Steam/Spotify/IMDB/Bangumi条目链接">
|
||||
placeholder="搜索书影音游戏,或输入豆瓣/Goodreads/Steam/Spotify/Bandcamp/TMDB/IMDB/Bangumi等条目链接">
|
||||
<select class="navbar__search-dropdown" id="searchCategory">
|
||||
<option value="all" {% if request.GET.c and request.GET.c != 'movie' and request.GET.c != 'book' or not request.GET.c %}selected{% endif %}>{% trans '任意' %}</option>
|
||||
<option value="book" {% if request.GET.c and request.GET.c == 'book' %}selected{% endif %}>{% trans '书籍' %}</option>
|
||||
|
|
|
@ -785,10 +785,8 @@ def set_layout(request):
|
|||
|
||||
@login_required
|
||||
def report(request):
|
||||
print(request.a.a)
|
||||
if request.method == 'GET':
|
||||
user_id = request.GET.get('user_id')
|
||||
print(user_id)
|
||||
if user_id:
|
||||
user = get_object_or_404(User, pk=user_id)
|
||||
form = ReportForm(initial={'reported_user': user})
|
||||
|
|
Loading…
Add table
Reference in a new issue