This commit is contained in:
Aevann1 2021-09-08 12:57:56 +02:00
parent 5cafe16f4b
commit f0f8624fff
7 changed files with 35 additions and 31 deletions

View file

@ -167,7 +167,7 @@ def get_profilecss(username):
@app.get("/songs/<id>")
def songs(id):
try: id = int(id)
except: return '', 400
except: return "", 400
user = g.db.query(User).filter_by(id=id).first()
return redirect(f"/song/{user.song}.mp3")