From 5f8ecfab54615ba9f7e240e663ec3bc45c76fd09 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Thu, 31 Aug 2023 10:15:32 -0400 Subject: disambiguate prefix --- newspipe/bootstrap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newspipe/bootstrap.py b/newspipe/bootstrap.py index 9c7630ab..915c29db 100644 --- a/newspipe/bootstrap.py +++ b/newspipe/bootstrap.py @@ -72,10 +72,10 @@ else: set_logging(application.config["LOG_PATH"]) -prefix = "" +_prefix = "" if "PREFIX" in application.config: application.wsgi_app = ReverseProxied(application.wsgi_app, script_name=application.config["PREFIX"]) - prefix = application.config["PREFIX"] + _prefix = application.config["PREFIX"] db = SQLAlchemy(application) @@ -125,5 +125,5 @@ def utility_processor(): print(f"DEBUG: generating url_for {endpoint}, of {_uf}") return _uf def prefix(): - return prefix.rstrip("/") + return _prefix.rstrip("/") return dict(url_for=url_for,prefix=prefix) -- cgit