This commit is contained in:
Rich
2021-07-03 06:09:40 +01:00
parent e35831cd6e
commit c3e4df2893

6
app.py
View File

@@ -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)