autoflake

This commit is contained in:
Reid 'arrdem' McKenzie 2023-05-27 10:42:30 -06:00
parent d959a13aa2
commit ae7891605a
6 changed files with 3 additions and 19 deletions

View file

@ -6,7 +6,7 @@
from pathlib import Path
import click
from flask import Flask, request, session, current_app
from flask import Flask, request, current_app
import tomllib
from datetime import datetime

View file

@ -3,7 +3,7 @@
"""API endpoints supporting the 'ui'."""
from flask import Blueprint, request, Request, redirect
from flask import Blueprint
BLUEPRINT = Blueprint("api", __name__, url_prefix="/api")

View file

@ -4,17 +4,12 @@
import logging
from click import group
from flask import (
Blueprint,
current_app,
request,
Request,
redirect,
render_template,
session,
url_for,
flash,
)

View file

@ -8,16 +8,12 @@ import re
from tentacles.globals import ctx
from click import group
from flask import (
Blueprint,
current_app,
request,
Request,
redirect,
render_template,
session,
url_for,
flash,
)

View file

@ -2,17 +2,10 @@
import logging
from click import group
from flask import (
Blueprint,
current_app,
request,
Request,
redirect,
render_template,
session,
url_for,
flash,
)

View file

@ -21,7 +21,7 @@
{% endfor %}
</ul>
{% 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 %}
{% endwith %}
</div>