Skip to content

Commit 4105bfc

Browse files
committed
hide unnecessary ip
1 parent d1f5d48 commit 4105bfc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ def get_black_list(self):
324324
for key in keys:
325325
count = r.get(key)
326326
ttl = r.ttl(key)
327-
result[key] = dict(count=count, ttl=ttl)
327+
if ttl != -1:
328+
result[key] = dict(count=count, ttl=ttl)
328329
return result
329330

330331
@gen.coroutine

0 commit comments

Comments
 (0)