From 9c0534ee2f3c93d458378c62ecd3832f4a4d7ce9 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 9 Nov 2023 11:06:50 +1100 Subject: [PATCH] fix: Typo in rate limit time --- gift.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gift.py b/gift.py index bb5563b..95f2da3 100644 --- a/gift.py +++ b/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'):