fsd
This commit is contained in:
parent
f1e2a6d6ad
commit
5d6e14b9b3
17 changed files with 53 additions and 53 deletions
|
@ -399,7 +399,7 @@ def namecolor(v):
|
|||
v.namecolor = color
|
||||
g.db.add(v)
|
||||
g.db.commit()
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
@app.post("/settings/themecolor")
|
||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
|
@ -412,7 +412,7 @@ def themecolor(v):
|
|||
v.themecolor = themecolor
|
||||
g.db.add(v)
|
||||
g.db.commit()
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
@app.post("/settings/gumroad")
|
||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
|
@ -476,7 +476,7 @@ def titlecolor(v):
|
|||
v.titlecolor = titlecolor
|
||||
g.db.add(v)
|
||||
g.db.commit()
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
@app.post("/settings/verifiedcolor")
|
||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
|
@ -488,7 +488,7 @@ def verifiedcolor(v):
|
|||
v.verifiedcolor = verifiedcolor
|
||||
g.db.add(v)
|
||||
g.db.commit()
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
@app.post("/settings/security")
|
||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
|
@ -775,7 +775,7 @@ def settings_remove_discord(v):
|
|||
|
||||
g.db.commit()
|
||||
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
@app.get("/settings/content")
|
||||
@auth_required
|
||||
|
@ -825,7 +825,7 @@ def settings_name_change(v):
|
|||
|
||||
g.db.commit()
|
||||
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
@app.post("/settings/song_change")
|
||||
@limiter.limit("2/second;10/day")
|
||||
|
@ -839,7 +839,7 @@ def settings_song_change(v):
|
|||
v.song = None
|
||||
g.db.add(v)
|
||||
g.db.commit()
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
song = song.replace("https://music.youtube.com", "https://youtube.com")
|
||||
if song.startswith(("https://www.youtube.com/watch?v=", "https://youtube.com/watch?v=", "https://m.youtube.com/watch?v=")):
|
||||
|
@ -856,7 +856,7 @@ def settings_song_change(v):
|
|||
v.song = id
|
||||
g.db.add(v)
|
||||
g.db.commit()
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
|
||||
req = requests.get(f"https://www.googleapis.com/youtube/v3/videos?id={id}&key={YOUTUBE_KEY}&part=contentDetails", timeout=5).json()
|
||||
|
@ -904,7 +904,7 @@ def settings_song_change(v):
|
|||
|
||||
g.db.commit()
|
||||
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
@app.post("/settings/title_change")
|
||||
@limiter.limit("1/second;30/minute;200/hour;1000/day")
|
||||
|
@ -925,13 +925,13 @@ def settings_title_change(v):
|
|||
g.db.add(v)
|
||||
g.db.commit()
|
||||
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
|
||||
@app.get("/settings")
|
||||
@auth_required
|
||||
def settings(v):
|
||||
return redirect(f"{SITE_FULL}/settings/profile")
|
||||
return redirect("/settings/profile")
|
||||
|
||||
|
||||
@app.get("/settings/profile")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue