Greg Thompson commited on
Commit
a24de84
1 Parent(s): cbbb51a

Update input for data-driven quiz

Browse files
mathtext_fastapi/v2_conversation_manager.py CHANGED
@@ -122,6 +122,8 @@ def retrieve_microlesson_content(context_data, user_message, microlesson, contac
122
  'state': state_label
123
  }
124
  elif microlesson == 'addition2':
 
 
125
  message_package = num_one.process_user_message(contact_uuid, user_message)
126
  elif context_data['local_state'] == 'subtraction-question-sequence' or \
127
  user_message == 'subtract' or \
 
122
  'state': state_label
123
  }
124
  elif microlesson == 'addition2':
125
+ if user_message == 'harder' or user_message == 'easier':
126
+ user_message = ''
127
  message_package = num_one.process_user_message(contact_uuid, user_message)
128
  elif context_data['local_state'] == 'subtraction-question-sequence' or \
129
  user_message == 'subtract' or \
scripts/make_request.py CHANGED
@@ -105,14 +105,14 @@ def run_simulated_request(endpoint, sample_answer, context=None):
105
  # })
106
  # Need to start with this command to populate users.json
107
  # If users.json is not already made
108
- # run_simulated_request("num_one", {
109
- # "user_id": "1",
110
- # "message_text": "",
111
- # })
112
  run_simulated_request("num_one", {
113
  "user_id": "1",
114
- "message_text": "61",
115
  })
 
 
 
 
116
  # run_simulated_request("sequence", {
117
  # 'start': 2,
118
  # 'step': 1,
 
105
  # })
106
  # Need to start with this command to populate users.json
107
  # If users.json is not already made
 
 
 
 
108
  run_simulated_request("num_one", {
109
  "user_id": "1",
110
+ "message_text": "",
111
  })
112
+ # run_simulated_request("num_one", {
113
+ # "user_id": "1",
114
+ # "message_text": "61",
115
+ # })
116
  # run_simulated_request("sequence", {
117
  # 'start': 2,
118
  # 'step': 1,