This commit is contained in:
Rich
2021-07-03 21:04:38 +01:00
parent baecad76aa
commit 42458bfb77

View File

@@ -14,10 +14,10 @@ def search_results():
scan = ["rpi:100: :WPA2", "Home:94:*:WPA2", "HOME2:48: :WPA2", "BT:23: :"] scan = ["rpi:100: :WPA2", "Home:94:*:WPA2", "HOME2:48: :WPA2", "BT:23: :"]
for network in scan: for network in scan:
item = Network( item = Network(
item.split(":")[0], network.split(":")[0],
item.split(":")[1], network.split(":")[1],
"Yes" if item.split(":")[2] == "*" else "", "Yes" if network.split(":")[2] == "*" else "",
"None" if item.split(":")[3].strip() == "" else "WPA2", "None" if network.split(":")[3].strip() == "" else "WPA2",
) )
results.append(item) results.append(item)