lots of typing fixes
This commit is contained in:
parent
51f580a304
commit
3665c34961
43 changed files with 260 additions and 178 deletions
|
@ -1,4 +1,5 @@
|
|||
from flask import render_template, Blueprint, Response
|
||||
from flask.typing import ResponseReturnValue
|
||||
from sqlalchemy import desc
|
||||
|
||||
from app.models.base import Group
|
||||
|
@ -8,7 +9,7 @@ bp = Blueprint("eotk", __name__)
|
|||
|
||||
|
||||
@bp.route("/list")
|
||||
def eotk_list():
|
||||
def eotk_list() -> ResponseReturnValue:
|
||||
instances = Eotk.query.filter(Eotk.destroyed == None).order_by(desc(Eotk.added)).all()
|
||||
return render_template("list.html.j2",
|
||||
section="eotk",
|
||||
|
@ -18,7 +19,7 @@ def eotk_list():
|
|||
|
||||
|
||||
@bp.route("/conf/<group_id>")
|
||||
def eotk_conf(group_id: int):
|
||||
def eotk_conf(group_id: int) -> ResponseReturnValue:
|
||||
from app import app
|
||||
group = Group.query.filter(Group.id == group_id).first()
|
||||
return Response(render_template("sites.conf.j2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue