OAI Redo Fixes 2

This commit is contained in:
Henky!! 2022-04-06 04:54:27 +02:00
parent b5a633e69b
commit 699b3fc10b
1 changed files with 2 additions and 2 deletions

View File

@ -4418,8 +4418,8 @@ def oairequest(txt, min, max):
print(len(vars.actions))
print(vars.actions_metadata)
raise
if data in alternatives:
alternatives = [item for item in vars.actions_metadata[vars.actions.get_last_key() ]["Alternative Text"] if item['Text'] != data]
if genout in alternatives:
alternatives = [item for item in vars.actions_metadata[vars.actions.get_last_key() ]["Alternative Text"] if item['Text'] != genout]
vars.actions_metadata[vars.actions.get_last_key()]["Alternative Text"] = alternatives
vars.actions_metadata[vars.actions.get_last_key()]["Selected Text"] = genout
update_story_chunk('last')