bugfix for metadata saving

This commit is contained in:
ebolam 2022-01-22 20:30:14 -05:00
parent 9355ae420d
commit f54f46b068

View File

@ -2458,7 +2458,7 @@ def actionsubmit(data, actionmode=0, force_submit=False, force_prompt_gen=False,
# we now need to update the actions_metadata # we now need to update the actions_metadata
# we'll have two conditions. # we'll have two conditions.
# 1. This is totally new (user entered) # 1. This is totally new (user entered)
if len(vars.actions_metadata) < len(vars.actions): if len(vars.actions_metadata) <= len(vars.actions):
vars.actions_metadata.append({"Selected Text": data, "Alternative Text": []}) vars.actions_metadata.append({"Selected Text": data, "Alternative Text": []})
else: else:
# 2. We've selected a chunk of text that is was presented previously # 2. We've selected a chunk of text that is was presented previously