Skip to content
Snippets Groups Projects
Unverified Commit 70f9be77 authored by YeahNotSewerSide's avatar YeahNotSewerSide Committed by GitHub
Browse files

Update ratelimiter.py

parent 67242be4
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,9 @@ class RateLimiter:
cell[0] += to_add
if cell[0] > calls:
cell[0] = calls
cell[0] = calls
if cell[0] == 0:
if cell[0] <= 0:
return json({"success": False, "ratelimit": True})
self.storage[request.ip][0] -= 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment