aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newspipe/bootstrap.py6
1 files 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)
bgstack15