special string for saving user_response to metadata.
modified: app.py
This commit is contained in:
parent
b4684a8e6d
commit
eabf16a45a
1 changed files with 2 additions and 0 deletions
2
app.py
2
app.py
|
|
@ -2025,6 +2025,8 @@ def handle_activity_response(room_name, user_response, username):
|
|||
for key, value in step["transitions"][category][
|
||||
"metadata_add"
|
||||
].items():
|
||||
if value == "the-users-response":
|
||||
value = user_response
|
||||
new_metadata[key] = value
|
||||
activity_state.add_metadata(key, value)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue