From 830887c9620d48e610e90995ea7e024f190d9390 Mon Sep 17 00:00:00 2001 From: Rich Date: Sat, 3 Jul 2021 20:26:49 +0100 Subject: [PATCH] . --- app/routes.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 153a254..b8a548a 100644 --- a/app/routes.py +++ b/app/routes.py @@ -13,7 +13,12 @@ def search_results(): results = [] scan = ["rpi:100: :WPA2", "Home:94:*:WPA2", "HOME2:48: :WPA2", "BT:23: :"] for item in scan: - erm = Network(item.split(":")[0], item.split(":")[1], item.split(":")[2], item.split(":")[3]) + erm = Network( + item.split(":")[0], + item.split(":")[1], + "Yes" if item.split(":")[2] == "*" else "", + "None" if item.split(":")[3].strip() == "" else "WPA2", + ) results.append(erm) table = Networks(results)