6 Commits

5 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{
"python.analysis.autoImportCompletions": true,
"python.analysis.typeCheckingMode": "standard",
"python.analysis.autoImportCompletions": true,
"python.analysis.typeCheckingMode": "standard"
}

View File

View File

View File

View File

@@ -85,7 +85,7 @@ def index() -> flask.Response | str:
@app.route("/login", methods=["GET", "POST"])
def login() -> str:
def login() -> flask.Response | str:
"""Handles user login via password form."""
if flask.request.method == "POST":
password = flask.request.form.get("password", "")
@@ -154,6 +154,7 @@ def stream(pc_id: str) -> str:
Rendered HTML template for streaming.
"""
return flask.render_template(
"stream.html",
logged=True,
username=flask_login.current_user.id,
pc=PC_DETAILS[pc_id],