decrease unnecessary 1/2 minutes ratelimit

master
Aevann 2023-02-26 12:24:38 +02:00
parent 95e824f308
commit 588c133e67
1 changed files with 2 additions and 2 deletions

View File

@ -245,8 +245,8 @@ def contact(v:Optional[User]):
@app.post("/contact")
@limiter.limit('1/second', scope=rpath)
@limiter.limit("1/2 minutes;10/day")
@limiter.limit("1/2 minutes;10/day", key_func=get_ID)
@limiter.limit("1/minute;10/day")
@limiter.limit("1/minute;10/day", key_func=get_ID)
@auth_required
def submit_contact(v):
body = request.values.get("message")