This commit is contained in:
Rich
2021-07-03 05:39:23 +01:00
parent 2234092174
commit 9f25f0a9fb
2 changed files with 24 additions and 1 deletions

23
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Flask",
"type": "python",
"request": "launch",
"module": "flask",
"env": {
"FLASK_APP": "app.py",
"FLASK_ENV": "development"
},
"args": [
"run",
"--no-debugger"
],
"jinja": true
}
]
}

2
app.py
View File

@@ -31,7 +31,7 @@ def scan_wifi():
@app.route("/", methods=["GET", "POST"])
def main():
if request.method == "GET":
# scan_wifi()
scan_wifi()
output = """<form method="POST"><table>
<thead>
<tr>