botsi commited on
Commit
daed408
·
verified ·
1 Parent(s): 0942251

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -85,7 +85,7 @@ type `read query`
85
  def bot(history, url_params):
86
  if "read query" in history[-1][0]:
87
  session_index = url_params.get('session_index')
88
- print(session_index)
89
  bot_message = f"""
90
  here your URL params:
91
  {json.dumps(url_params, indent=4)}
@@ -105,6 +105,7 @@ type `read query`
105
  core_table = "e5390g37096_core"
106
  decisions_table = "e5390g37096_decisions"
107
  session_index = url_params.get('session_index')
 
108
  playerNr = "1"
109
 
110
  # Connect to the database
@@ -157,7 +158,9 @@ type `read query`
157
 
158
  # Close the database connection
159
  conn.close()
160
-
 
 
161
  # Return the JSON result
162
  return personalized_result
163
 
 
85
  def bot(history, url_params):
86
  if "read query" in history[-1][0]:
87
  session_index = url_params.get('session_index')
88
+ #print(session_index)
89
  bot_message = f"""
90
  here your URL params:
91
  {json.dumps(url_params, indent=4)}
 
105
  core_table = "e5390g37096_core"
106
  decisions_table = "e5390g37096_decisions"
107
  session_index = url_params.get('session_index')
108
+ print(session_index)
109
  playerNr = "1"
110
 
111
  # Connect to the database
 
158
 
159
  # Close the database connection
160
  conn.close()
161
+
162
+ print(personalized_result)
163
+
164
  # Return the JSON result
165
  return personalized_result
166