diff options
author | B. Stack <bgstack15@gmail.com> | 2023-08-31 10:15:32 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2023-08-31 10:15:32 -0400 |
commit | 5f8ecfab54615ba9f7e240e663ec3bc45c76fd09 (patch) | |
tree | 1baf65ec3add06cf6f40e0fc82ac03e34e6493b3 | |
parent | try prefix() (diff) | |
download | newspipe-5f8ecfab54615ba9f7e240e663ec3bc45c76fd09.tar.gz newspipe-5f8ecfab54615ba9f7e240e663ec3bc45c76fd09.tar.bz2 newspipe-5f8ecfab54615ba9f7e240e663ec3bc45c76fd09.zip |
disambiguate prefix
-rw-r--r-- | newspipe/bootstrap.py | 6 |
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) |