Spaces:
Runtime error
Runtime error
Greg Thompson
commited on
Commit
•
d357071
1
Parent(s):
a24de84
Update state label in data-driven quiz response
Browse files
mathtext_fastapi/v2_conversation_manager.py
CHANGED
@@ -125,6 +125,8 @@ def retrieve_microlesson_content(context_data, user_message, microlesson, contac
|
|
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 \
|
130 |
microlesson == 'subtraction':
|
|
|
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 |
+
message_package['state'] = 'addition2'
|
129 |
+
|
130 |
elif context_data['local_state'] == 'subtraction-question-sequence' or \
|
131 |
user_message == 'subtract' or \
|
132 |
microlesson == 'subtraction':
|
users.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"1": {"skill_score": 0.
|
|
|
1 |
+
{"1": {"skill_score": 0.03, "state": "question", "start": 3, "stop": 3, "step": 1, "answer": 4}}
|