autoflake
This commit is contained in:
parent
0627b72031
commit
117b3bc3d0
6 changed files with 3 additions and 19 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import click
|
import click
|
||||||
from flask import Flask, request, session, current_app
|
from flask import Flask, request, current_app
|
||||||
import tomllib
|
import tomllib
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"""API endpoints supporting the 'ui'."""
|
"""API endpoints supporting the 'ui'."""
|
||||||
|
|
||||||
|
|
||||||
from flask import Blueprint, request, Request, redirect
|
from flask import Blueprint
|
||||||
|
|
||||||
BLUEPRINT = Blueprint("api", __name__, url_prefix="/api")
|
BLUEPRINT = Blueprint("api", __name__, url_prefix="/api")
|
||||||
|
|
||||||
|
|
|
@ -4,17 +4,12 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from click import group
|
|
||||||
|
|
||||||
from flask import (
|
from flask import (
|
||||||
Blueprint,
|
Blueprint,
|
||||||
current_app,
|
|
||||||
request,
|
request,
|
||||||
Request,
|
|
||||||
redirect,
|
redirect,
|
||||||
render_template,
|
render_template,
|
||||||
session,
|
|
||||||
url_for,
|
|
||||||
flash,
|
flash,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -8,16 +8,12 @@ import re
|
||||||
|
|
||||||
from tentacles.globals import ctx
|
from tentacles.globals import ctx
|
||||||
|
|
||||||
from click import group
|
|
||||||
from flask import (
|
from flask import (
|
||||||
Blueprint,
|
Blueprint,
|
||||||
current_app,
|
current_app,
|
||||||
request,
|
request,
|
||||||
Request,
|
|
||||||
redirect,
|
redirect,
|
||||||
render_template,
|
render_template,
|
||||||
session,
|
|
||||||
url_for,
|
|
||||||
flash,
|
flash,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,17 +2,10 @@
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from click import group
|
|
||||||
|
|
||||||
from flask import (
|
from flask import (
|
||||||
Blueprint,
|
|
||||||
current_app,
|
current_app,
|
||||||
request,
|
|
||||||
Request,
|
|
||||||
redirect,
|
redirect,
|
||||||
render_template,
|
|
||||||
session,
|
|
||||||
url_for,
|
|
||||||
flash,
|
flash,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
No printers available. {% if request.is_admin %}<a href="/printers/add">Configure one!</a>{% else %}Ask the admin to configure one!{% endif %}
|
No printers available. {% if ctx.is_admin %}<a href="/printers/add">Configure one!</a>{% else %}Ask the admin to configure one!{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue