.
This commit is contained in:
6
app.py
6
app.py
@@ -26,9 +26,9 @@ def scan_wifi():
|
|||||||
|
|
||||||
scan = []
|
scan = []
|
||||||
temp = subprocess.run(CMD_SCAN.split(" "), stdout=subprocess.PIPE).stdout.decode("utf-8")
|
temp = subprocess.run(CMD_SCAN.split(" "), stdout=subprocess.PIPE).stdout.decode("utf-8")
|
||||||
for line in temp.split():
|
for line in temp.splitlines():
|
||||||
line = line.split(":")
|
t = line.split(":")
|
||||||
if line[0] != "":
|
if t[0] != "":
|
||||||
scan.append(line)
|
scan.append(line)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user