From c3e4df2893f9420a77f120db41f2ff658944abf1 Mon Sep 17 00:00:00 2001 From: Rich Date: Sat, 3 Jul 2021 06:09:40 +0100 Subject: [PATCH] . --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 2c50e2a..5c8a074 100644 --- a/app.py +++ b/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)