feat: Results show now multiple results

This commit is contained in:
2024-06-29 22:19:44 +02:00
parent 0e10bf6476
commit 4077252a0e
5 changed files with 36 additions and 40 deletions

View File

@ -13,7 +13,7 @@ def form_example():
if request.method == 'POST':
search = request.form.get('search')
result = searchSpotify(search)
return render_template("found.html", query=search, trackName=result[0], trackArtist=result[1], trackAlbum=result[2], trackPreview=result[3], trackImage=result[4], trackID=result[5],)
return render_template("found.html", query=search, tracks=result)
# otherwise handle the GET request
return render_template("index.html")