Skip to content

Commit

Permalink
fix(sdk): Fix wrong return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse-numerous committed Oct 25, 2024
1 parent bcc6ae9 commit db08f39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/src/numerous/frameworks/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
class FlaskCookieGetter:
def cookies(self) -> dict[str, str]:
"""Get the cookies associated with the current request."""
cookies = request.cookies
cookies = {key: str(val) for key, val in request.cookies.items()}
if is_local_mode():
# Update the cookies on the flask server
user_session.set_user_info_cookie(cookies, local_user)
return cookies


session = user_session.Session(cg=FlaskCookieGetter())
def get_session() -> user_session.Session:
return user_session.Session(cg=FlaskCookieGetter())

0 comments on commit db08f39

Please sign in to comment.