fix: Typo in rate limit time
All checks were successful
Build Docker / Build Image (push) Successful in 20s
All checks were successful
Build Docker / Build Image (push) Successful in 20s
This commit is contained in:
parent
a271ce9793
commit
9c0534ee2f
2
gift.py
2
gift.py
@ -32,7 +32,7 @@ def gift(name,email,referer, ip,api=False):
|
||||
|
||||
recent_gifts = 0
|
||||
for gift in previous_gifts:
|
||||
if previous_gifts['time'] > time.time() - interval:
|
||||
if gift['time'] > time.time() - interval:
|
||||
recent_gifts += 1
|
||||
|
||||
if recent_gifts > max_gifts_per_interval and ip != os.getenv('admin_ip'):
|
||||
|
Loading…
Reference in New Issue
Block a user