From f2194946f34e5b3259430ffaed72dc658123a46a Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Sat, 19 Feb 2022 22:19:57 +0800 Subject: Logger.read_admin/tenant --- jimbrella/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'jimbrella/admin.py') diff --git a/jimbrella/admin.py b/jimbrella/admin.py index 9d7d98b..f0b2f69 100644 --- a/jimbrella/admin.py +++ b/jimbrella/admin.py @@ -3,7 +3,7 @@ from user_agents import parse as user_agent from datetime import datetime from dateutil.parser import isoparse from .umbrellas import Umbrellas -from .admin_log import AdminLog +from .logger import Logger from .users import Users from .exceptions import * from .config import config @@ -12,7 +12,7 @@ from .utils import human_datetime, human_timedelta, CST bp = Blueprint("admin", __name__, url_prefix="/admin") db = Umbrellas(config.get("general", "db_path")) users = Users(config.get("general", "db_path")) -admin_log = AdminLog(config.get("general", "db_path")) +logger = Logger(config.get("general", "db_path")) @bp.before_request @@ -131,5 +131,5 @@ def umbrellas_edit(): @bp.route("/logs") def logs(): - logs = admin_log.read() + logs = logger.read_admin() return render_template("admin/admin_logs.html", logs=logs) -- cgit v1.2.3