mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update simpleping_index.py
This commit is contained in:
@@ -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,))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user