.
This commit is contained in:
@@ -12,14 +12,14 @@ from app.models import User, Network, Networks
|
|||||||
def search_results():
|
def search_results():
|
||||||
results = []
|
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 item in scan:
|
for network in scan:
|
||||||
erm = Network(
|
item = Network(
|
||||||
item.split(":")[0],
|
item.split(":")[0],
|
||||||
item.split(":")[1],
|
item.split(":")[1],
|
||||||
"Yes" if item.split(":")[2] == "*" else "",
|
"Yes" if item.split(":")[2] == "*" else "",
|
||||||
"None" if item.split(":")[3].strip() == "" else "WPA2",
|
"None" if item.split(":")[3].strip() == "" else "WPA2",
|
||||||
)
|
)
|
||||||
results.append(erm)
|
results.append(item)
|
||||||
|
|
||||||
table = Networks(results)
|
table = Networks(results)
|
||||||
table.border = True
|
table.border = True
|
||||||
|
|||||||
Reference in New Issue
Block a user