6 Commits

5 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
{ {
"python.analysis.autoImportCompletions": true, "python.analysis.autoImportCompletions": true,
"python.analysis.typeCheckingMode": "standard", "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"]) @app.route("/login", methods=["GET", "POST"])
def login() -> str: def login() -> flask.Response | str:
"""Handles user login via password form.""" """Handles user login via password form."""
if flask.request.method == "POST": if flask.request.method == "POST":
password = flask.request.form.get("password", "") password = flask.request.form.get("password", "")
@@ -154,6 +154,7 @@ def stream(pc_id: str) -> str:
Rendered HTML template for streaming. Rendered HTML template for streaming.
""" """
return flask.render_template( return flask.render_template(
"stream.html",
logged=True, logged=True,
username=flask_login.current_user.id, username=flask_login.current_user.id,
pc=PC_DETAILS[pc_id], pc=PC_DETAILS[pc_id],