Skip to content

Commit 8359895

Browse files
author
Lan
committed
fix:#204
1 parent 0dca661 commit 8359895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/base/depends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def __init__(self, count, minutes):
1919
def check_ip(self, ip):
2020
# 检查ip是否被禁止
2121
if ip in self.ips:
22-
if self.ips[ip]['count'] >= self.count:
22+
if int(self.ips[ip]['count']) >= int(self.count):
2323
if self.ips[ip]['time'] + timedelta(minutes=self.minutes) > datetime.now():
2424
return False
2525
else:

0 commit comments

Comments
 (0)