fix: Typo in rate limit time
All checks were successful
Build Docker / Build Image (push) Successful in 20s

This commit is contained in:
2023-11-09 11:06:50 +11:00
parent a271ce9793
commit 9c0534ee2f

View File

@@ -32,7 +32,7 @@ def gift(name,email,referer, ip,api=False):
recent_gifts = 0 recent_gifts = 0
for gift in previous_gifts: for gift in previous_gifts:
if previous_gifts['time'] > time.time() - interval: if gift['time'] > time.time() - interval:
recent_gifts += 1 recent_gifts += 1
if recent_gifts > max_gifts_per_interval and ip != os.getenv('admin_ip'): if recent_gifts > max_gifts_per_interval and ip != os.getenv('admin_ip'):