From 3f723235ec0fc6e101a3553438c6422e902d2142 Mon Sep 17 00:00:00 2001 From: Youen Date: Sun, 14 Aug 2022 18:48:09 +0200 Subject: [PATCH] removed debug print --- src/web/admin/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/web/admin/admin.py b/src/web/admin/admin.py index 9919162..a658578 100644 --- a/src/web/admin/admin.py +++ b/src/web/admin/admin.py @@ -9,7 +9,7 @@ bp = Blueprint('admin', __name__, url_prefix='/admin') @bp.before_app_request def authenticate(): - print(request.path) + # Some views don't need authentication if request.path == '/admin/login' or request.path.startswith('/doc/') or request.path == '/api/doc/build': return @@ -33,4 +33,4 @@ def login(): else: raise Exception("Incorrect password") else: - return render_template("admin/login.html") \ No newline at end of file + return render_template("admin/login.html")