From a824a38ecb7c71f6f26031f83fd8b8353281c5ed Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 23 Feb 2022 21:02:01 +0800 Subject: Reserve /admin/log for tenant log, /admin/adminlog for admin log --- jimbrella/admin.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/jimbrella/admin.py b/jimbrella/admin.py index f0b2f69..19c5a12 100644 --- a/jimbrella/admin.py +++ b/jimbrella/admin.py @@ -129,7 +129,12 @@ def umbrellas_edit(): return redirect(url_for("admin.umbrellas")) -@bp.route("/logs") -def logs(): +@bp.route("/adminlogs") +def adminlogs(): logs = logger.read_admin() return render_template("admin/admin_logs.html", logs=logs) + +@bp.route("/logs") +def logs(): + logs = logger.read_tenant() + return render_template("admin/logs.html", logs=logs) -- cgit v1.2.3