Greg Thompson commited on
Commit
fd02737
1 Parent(s): a8264fd

Add code to attempt integrating data-driven quiz

Browse files
mathtext_fastapi/v2_conversation_manager.py CHANGED
@@ -120,6 +120,9 @@ def retrieve_microlesson_content(context_data, user_message, microlesson, contac
120
  'input_prompt': input_prompt,
121
  'state': state_label
122
  }
 
 
 
123
  elif context_data['local_state'] == 'subtraction-question-sequence' or \
124
  user_message == 'subtract' or \
125
  microlesson == 'subtraction':
@@ -144,7 +147,8 @@ def retrieve_microlesson_content(context_data, user_message, microlesson, contac
144
 
145
  curriculum_lookup_table = {
146
  'N1.1.1_G1': 'addition',
147
- 'N1.1.1_G2': 'subtraction'
 
148
  }
149
 
150
 
 
120
  'input_prompt': input_prompt,
121
  'state': state_label
122
  }
123
+ elif microlesson == 'addition2':
124
+ pass
125
+ # message_package = mathactive.process_user_message(user_id, message_text, state)
126
  elif context_data['local_state'] == 'subtraction-question-sequence' or \
127
  user_message == 'subtract' or \
128
  microlesson == 'subtraction':
 
147
 
148
  curriculum_lookup_table = {
149
  'N1.1.1_G1': 'addition',
150
+ 'N1.1.1_G2': 'addition2',
151
+ 'N1.1.2_G1': 'subtraction'
152
  }
153
 
154
 
scripts/make_request.py CHANGED
@@ -79,8 +79,8 @@ def run_simulated_request(endpoint, sample_answer, context=None):
79
  # run_simulated_request('nlu', "0.2")
80
  # run_simulated_request('nlu', 'Today is a wonderful day')
81
  # run_simulated_request('nlu', 'IDK 5?')
82
- run_simulated_request('v2/manager', '')
83
- run_simulated_request('v2/manager', '5')
84
  # run_simulated_request('manager', '')
85
  # run_simulated_request('manager', 'add')
86
  # run_simulated_request('manager', 'subtract')
 
79
  # run_simulated_request('nlu', "0.2")
80
  # run_simulated_request('nlu', 'Today is a wonderful day')
81
  # run_simulated_request('nlu', 'IDK 5?')
82
+ # run_simulated_request('v2/manager', '')
83
+ # run_simulated_request('v2/manager', '5')
84
  # run_simulated_request('manager', '')
85
  # run_simulated_request('manager', 'add')
86
  # run_simulated_request('manager', 'subtract')
users.json ADDED
File without changes