We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dca661 commit 8359895Copy full SHA for 8359895
apps/base/depends.py
@@ -19,7 +19,7 @@ def __init__(self, count, minutes):
19
def check_ip(self, ip):
20
# 检查ip是否被禁止
21
if ip in self.ips:
22
- if self.ips[ip]['count'] >= self.count:
+ if int(self.ips[ip]['count']) >= int(self.count):
23
if self.ips[ip]['time'] + timedelta(minutes=self.minutes) > datetime.now():
24
return False
25
else:
0 commit comments