Update settings.py

master
Aevann1 2021-12-11 16:04:24 +02:00 committed by GitHub
parent 3b14454dac
commit 6d0dea81ed
1 changed files with 2 additions and 2 deletions

View File

@ -980,7 +980,7 @@ def settings_name_change(v):
return redirect("/settings/profile")
@app.post("/settings/song_change")
@limiter.limit("1/second")
@limiter.limit("5/day;1/second")
@auth_required
@validate_formkey
def settings_song_change(v):
@ -1081,4 +1081,4 @@ def settings_title_change(v):
g.db.add(v)
g.db.commit()
return redirect("/settings/profile")
return redirect("/settings/profile")