|
@@ -98,8 +98,8 @@ def check_blocks():
|
|
|
now = pendulum.now()
|
|
|
for ip in blocks:
|
|
|
dt = pendulum.parse(blocks[ip])
|
|
|
- log.debug("IP={0} TIME_LEFT={1}".format(ip, abs(now.diff(dt, False).in_hours())))
|
|
|
- if abs(now.diff(dt, False).in_hours()) < conf["block_time"]:
|
|
|
+ # log.debug("IP={0} TIME_LEFT={1}".format(ip, abs(now.diff(dt, False).in_hours())))
|
|
|
+ if abs(now.diff(dt, False).in_hours()) > conf["block_time"]:
|
|
|
# Oops, this ip needs to be unblocked
|
|
|
result.append(ip)
|
|
|
if result:
|