Skip to content

Commit fec7bb0

Browse files
committed
Bugfix add missing globals to Flask-Patch
app_ctx and request_ctx are used by Flask extensions (Flask-SQLAlchemy being the prime example).
1 parent 68da65c commit fec7bb0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/quart/flask_patch/globals.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
_cv_app,
1010
_cv_request,
1111
_cv_websocket,
12+
app_ctx,
1213
current_app,
1314
g,
1415
request as quart_request,
16+
request_ctx,
1517
session,
1618
)
1719
from ._synchronise import sync_with_context
@@ -48,8 +50,10 @@ def get_data(self, *args: Any, **kwargs: Any) -> AnyStr:
4850
"_cv_app",
4951
"_cv_request",
5052
"_cv_websocket",
53+
"app_ctx",
5154
"current_app",
5255
"g",
5356
"request",
57+
"request_ctx",
5458
"session",
5559
)

0 commit comments

Comments
 (0)