From ff210394a0679e542f6e6ad07f5e4d7ad9521046 Mon Sep 17 00:00:00 2001 From: Son Date: Sat, 23 Oct 2021 16:07:54 +0200 Subject: [PATCH] rename canonical_url -> CANONICAL_URL --- server.py | 4 +++- templates/base.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index b2f0c544..fdb250b6 100644 --- a/server.py +++ b/server.py @@ -69,6 +69,7 @@ from app.config import ( PGP_SIGNER, COINBASE_WEBHOOK_SECRET, ROOT_DIR, + PAGE_LIMIT, ) from app.dashboard.base import dashboard_bp from app.db import Session @@ -629,7 +630,8 @@ def jinja2_filter(app): STATUS_PAGE_URL=STATUS_PAGE_URL, SUPPORT_EMAIL=SUPPORT_EMAIL, PGP_SIGNER=PGP_SIGNER, - canonical_url=f"{URL}{request.path}", + CANONICAL_URL=f"{URL}{request.path}", + PAGE_LIMIT=PAGE_LIMIT, ) diff --git a/templates/base.html b/templates/base.html index 9eace899..2f786d1a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -28,7 +28,7 @@ - + {% block title %}{% endblock %} | SimpleLogin