special string for saving user_response to metadata.

modified:   app.py
This commit is contained in:
Russell Ballestrini 2024-08-05 09:10:47 -04:00
parent b4684a8e6d
commit eabf16a45a

2
app.py
View file

@ -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)