Compare commits
8 Commits
0.1.1
...
1901441948
| Author | SHA1 | Date | |
|---|---|---|---|
|
1901441948
|
|||
|
6bed7da165
|
|||
|
f8f74ccd4b
|
|||
|
5fb6920436
|
|||
|
23a53f79a0
|
|||
|
89dd67b489
|
|||
|
c2e1984959
|
|||
|
dbc61ac6b7
|
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"python.analysis.autoImportCompletions": true,
|
"python.analysis.autoImportCompletions": true,
|
||||||
"python.analysis.typeCheckingMode": "standard",
|
"python.analysis.typeCheckingMode": "standard"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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/*"]
|
||||||
|
|||||||
0
src/judas_server/backend/__init__.py
Normal file
0
src/judas_server/backend/__init__.py
Normal file
0
src/judas_server/py.typed
Normal file
0
src/judas_server/py.typed
Normal file
0
src/judas_server/web/__init__.py
Normal file
0
src/judas_server/web/__init__.py
Normal file
0
src/judas_server/web/routes/__init__.py
Normal file
0
src/judas_server/web/routes/__init__.py
Normal 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],
|
||||||
|
|||||||
Reference in New Issue
Block a user