From e1543f2e91a4f076169bbd9e92144190c2bfd3f7 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Wed, 15 Dec 2021 16:06:37 -0800 Subject: [PATCH] fix(templates): import aurweb.auth.creds directly Signed-off-by: Kevin Morris --- aurweb/templates.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aurweb/templates.py b/aurweb/templates.py index 635b22b4..5eea1d3e 100644 --- a/aurweb/templates.py +++ b/aurweb/templates.py @@ -14,9 +14,10 @@ import jinja2 from fastapi import Request from fastapi.responses import HTMLResponse +import aurweb.auth.creds import aurweb.config -from aurweb import auth, captcha, cookies, l10n, time, util +from aurweb import captcha, cookies, l10n, time, util # Prepare jinja2 objects. _loader = jinja2.FileSystemLoader(os.path.join( @@ -107,7 +108,7 @@ def make_context(request: Request, title: str, next: str = None): "now": datetime.now(tz=zoneinfo.ZoneInfo(timezone)), "utcnow": int(datetime.utcnow().timestamp()), "config": aurweb.config, - "creds": auth.creds, + "creds": aurweb.auth.creds, "next": next if next else request.url.path }