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