Skip to content

Commit ef8ca24

Browse files
committed
Update to qwc-services-core==1.4.0
1 parent 656c3e2 commit ef8ca24

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies = [
1515
"psycopg2~=2.9.9",
1616
"SQLAlchemy~=2.0.29",
1717
"email_validator~=2.1.0.post1",
18-
"qwc-services-core~=1.3.34"
18+
"qwc-services-core~=1.4.0"
1919
]
2020

2121
[dependency-groups]

src/server.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
# create tenant handler
3030
tenant_handler = TenantHandler(app.logger)
31+
app.wsgi_app = TenantPrefixMiddleware(app.wsgi_app)
32+
app.session_interface = TenantSessionInterface()
3133

3234
# enable CSRF protection
3335
CSRFProtect(app)
@@ -102,10 +104,6 @@ def i18n(value, locale=DEFAULT_LOCALE):
102104

103105
return lookup
104106

105-
106-
app.wsgi_app = TenantPrefixMiddleware(app.wsgi_app)
107-
app.session_interface = TenantSessionInterface(os.environ)
108-
109107
def auth_path_prefix():
110108
# e.g. /admin/org1/auth
111109
return app.session_interface.tenant_path_prefix().rstrip("/") + "/" + AUTH_PATH.lstrip("/")

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)