8 Commits

7 changed files with 7 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

@@ -21,6 +21,9 @@ test = [
"pytest-mock>=3.14.1", "pytest-mock>=3.14.1",
] ]
[tool.basedpyright]
typeCheckingMode = "basic"
[tool.ruff] [tool.ruff]
line-length = 79 line-length = 79
exclude = ["tests/*"] exclude = ["tests/*"]

View File

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],