botsi commited on
Commit
178a246
·
verified ·
1 Parent(s): 1cbdafa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -116,7 +116,8 @@ type `read query`
116
  # Replace the placeholders with your actual database and table names
117
  core_table = "e5390g37096_core"
118
  decisions_table = "e5390g37096_decisions"
119
- session_index = url_params.get('session_index')
 
120
  playerNr = "1"
121
 
122
  # Query to fetch relevant data from both tables based on session_index
@@ -163,10 +164,10 @@ type `read query`
163
  return personalized_result
164
 
165
  # Call the function to fetch data as JSON
166
- personalized_data = fetch_personalized_data()
167
 
168
  # Print or use the json_result variable as needed
169
- print(personalized_data)
170
 
171
  ''' def bot(history, url_params):
172
  global session_index
 
116
  # Replace the placeholders with your actual database and table names
117
  core_table = "e5390g37096_core"
118
  decisions_table = "e5390g37096_decisions"
119
+ # session_index = url_params.get('session_index')
120
+ session_index = session_index
121
  playerNr = "1"
122
 
123
  # Query to fetch relevant data from both tables based on session_index
 
164
  return personalized_result
165
 
166
  # Call the function to fetch data as JSON
167
+ # personalized_data = fetch_personalized_data()
168
 
169
  # Print or use the json_result variable as needed
170
+ # print(personalized_data)
171
 
172
  ''' def bot(history, url_params):
173
  global session_index