File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -83,28 +83,15 @@ def __init__(self, tenant_session: TenantSession):
83
83
self .tenant_session = tenant_session
84
84
85
85
def dispatch_request (self ):
86
- < << << << HEAD
87
- data = request .json
86
+ data : Dict [str , Any ] = request .json
88
87
session_id = self .tenant_session .get_flask_session_id ()
89
88
90
- == == == =
91
- data : Dict [str , Any ] = request .json
92
- session_id = session .get ("session_id" )
93
- if not session_id :
94
- session_id = str (uuid .uuid4 ())
95
- session ["session_id" ] = session_id
96
- > >> >> >> d00250a3c6e48f071c4f7ca0cca4dc686225247a
97
89
city = data ["city" ] or "null"
98
90
state = data ["state" ]
99
91
100
92
# Initialize the session with city and state
101
- < << << << HEAD
102
93
initial_data : TenantSessionData = {"city" : city , "state" : state , "messages" : []}
103
94
self .tenant_session .set (initial_data )
104
- == == == =
105
- initial_data = {"city" : city , "state" : state , "messages" : []}
106
- self .tenant_session .set (session_id , initial_data )
107
- >> >> >> > d00250a3c6e48f071c4f7ca0cca4dc686225247a
108
95
109
96
return Response (
110
97
status = 200 ,
You can’t perform that action at this time.
0 commit comments