From b10b0212abd69367bb48968eb3ce46e909bff7e1 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Tue, 4 Aug 2020 12:46:23 -0700 Subject: [PATCH] Use correct kwarg name in ratelimit example --- examples/maqpy/authed_ratelimit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/maqpy/authed_ratelimit.py b/examples/maqpy/authed_ratelimit.py index e807702..6b5337e 100644 --- a/examples/maqpy/authed_ratelimit.py +++ b/examples/maqpy/authed_ratelimit.py @@ -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"),