diff --git a/projects/tentacles/src/python/tentacles/__main__.py b/projects/tentacles/src/python/tentacles/__main__.py
index 002897f..8db9dff 100644
--- a/projects/tentacles/src/python/tentacles/__main__.py
+++ b/projects/tentacles/src/python/tentacles/__main__.py
@@ -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
diff --git a/projects/tentacles/src/python/tentacles/blueprints/api.py b/projects/tentacles/src/python/tentacles/blueprints/api.py
index 43497e3..1a0111f 100644
--- a/projects/tentacles/src/python/tentacles/blueprints/api.py
+++ b/projects/tentacles/src/python/tentacles/blueprints/api.py
@@ -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")
diff --git a/projects/tentacles/src/python/tentacles/blueprints/printer_ui.py b/projects/tentacles/src/python/tentacles/blueprints/printer_ui.py
index 27e273e..d8e10db 100644
--- a/projects/tentacles/src/python/tentacles/blueprints/printer_ui.py
+++ b/projects/tentacles/src/python/tentacles/blueprints/printer_ui.py
@@ -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,
)
diff --git a/projects/tentacles/src/python/tentacles/blueprints/user_ui.py b/projects/tentacles/src/python/tentacles/blueprints/user_ui.py
index 1a3c57d..30e2ea3 100644
--- a/projects/tentacles/src/python/tentacles/blueprints/user_ui.py
+++ b/projects/tentacles/src/python/tentacles/blueprints/user_ui.py
@@ -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,
)
diff --git a/projects/tentacles/src/python/tentacles/blueprints/util.py b/projects/tentacles/src/python/tentacles/blueprints/util.py
index 84ee7aa..ee40282 100644
--- a/projects/tentacles/src/python/tentacles/blueprints/util.py
+++ b/projects/tentacles/src/python/tentacles/blueprints/util.py
@@ -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,
)
diff --git a/projects/tentacles/src/python/tentacles/templates/printers.html.j2 b/projects/tentacles/src/python/tentacles/templates/printers.html.j2
index f9bd4fb..cb6f57d 100644
--- a/projects/tentacles/src/python/tentacles/templates/printers.html.j2
+++ b/projects/tentacles/src/python/tentacles/templates/printers.html.j2
@@ -21,7 +21,7 @@
{% endfor %}
{% else %}
- No printers available. {% if request.is_admin %}Configure one!{% else %}Ask the admin to configure one!{% endif %}
+ No printers available. {% if ctx.is_admin %}Configure one!{% else %}Ask the admin to configure one!{% endif %}
{% endif %}
{% endwith %}