Update simpleping_index.py

This commit is contained in:
Mr Chen
2024-07-11 15:20:11 +08:00
parent 2366a4e551
commit 0c718229d1
+5 -1
View File
@@ -31,7 +31,11 @@ def pingData(args = ()):
conn = conn.field(field)
data = []
atype = args['type']
ip = args['ip']
if not 'ip' in args:
ip = 'all'
else:
ip = args['ip']
if ip != 'all':
conn = conn.where('ip=?',(ip,))