change send method command
This commit is contained in:
@@ -24,12 +24,7 @@ def stats(ip):
|
||||
else:
|
||||
break
|
||||
|
||||
if command == "stats":
|
||||
res = "STATS"
|
||||
elif command == "devs":
|
||||
res = "DEVS"
|
||||
else:
|
||||
res = "POOLS"
|
||||
res = command.upper()
|
||||
|
||||
result = json.loads(resp[:-1].replace('}{', '},{'))
|
||||
result = json.dumps(result[res])
|
||||
@@ -40,4 +35,4 @@ def stats(ip):
|
||||
sock.shutdown(socket.SHUT_RDWR)
|
||||
sock.close()
|
||||
|
||||
stats(ip)
|
||||
stats(ip)
|
||||
Reference in New Issue
Block a user