Use correct kwarg name in ratelimit example

This commit is contained in:
Scoder12
2020-08-04 12:46:23 -07:00
parent dcbbaebcf7
commit b10b0212ab
+1 -1
View File
@@ -5,7 +5,7 @@ app = maqpy.App(__name__)
@app.route("/")
@maqpy.authed_ratelimit(
limit=1, # Number of requests allowed
max_requests=1, # Number of requests allowed
period=1, # Amount of time before counter resets
login_res=maqpy.Page(body=f"Sign in\n{maqpy.sign_in_snippet}"),
get_ratelimited_res=(lambda left: f"Too many requests, try again after {left} sec"),