lint: remove cyclic imports
This commit is contained in:
parent
d7dab2e234
commit
9797d8d119
7 changed files with 9 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
from flask import render_template, Blueprint, Response
|
||||
from flask import current_app, render_template, Blueprint, Response
|
||||
from flask.typing import ResponseReturnValue
|
||||
from sqlalchemy import desc
|
||||
|
||||
|
@ -20,8 +20,7 @@ def eotk_list() -> ResponseReturnValue:
|
|||
|
||||
@bp.route("/conf/<group_id>")
|
||||
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",
|
||||
bypass_token=app.config["BYPASS_TOKEN"],
|
||||
bypass_token=current_app.config["BYPASS_TOKEN"],
|
||||
group=group), content_type="text/plain")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue