aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2023-08-31 10:15:32 -0400
committerB. Stack <bgstack15@gmail.com>2023-08-31 10:15:32 -0400
commit5f8ecfab54615ba9f7e240e663ec3bc45c76fd09 (patch)
tree1baf65ec3add06cf6f40e0fc82ac03e34e6493b3
parenttry prefix() (diff)
downloadnewspipe-5f8ecfab54615ba9f7e240e663ec3bc45c76fd09.tar.gz
newspipe-5f8ecfab54615ba9f7e240e663ec3bc45c76fd09.tar.bz2
newspipe-5f8ecfab54615ba9f7e240e663ec3bc45c76fd09.zip
disambiguate prefix
-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