From 3f73f84b692f69284eeee6eadf0e1da4edfd97ee Mon Sep 17 00:00:00 2001 From: ebolam Date: Mon, 28 Feb 2022 19:04:12 -0500 Subject: [PATCH] bug fix --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index 66c0e197..c0e680c7 100644 --- a/aiserver.py +++ b/aiserver.py @@ -2676,7 +2676,7 @@ def actionsubmit(data, actionmode=0, force_submit=False, force_prompt_gen=False, # we'll have two conditions. # 1. This is totally new (user entered) if vars.actions.get_next_id()-1 not in vars.actions_metadata: - vars.actions_metadata.append({"Selected Text": data, "Alternative Text": []}) + vars.actions_metadata[vars.actions.get_next_id()-1] = {"Selected Text": data, "Alternative Text": []} else: # 2. We've selected a chunk of text that is was presented previously try: