From 171effc29b72f82e446797f1f134ce1b6803873d Mon Sep 17 00:00:00 2001 From: ebolam Date: Sat, 27 Aug 2022 18:25:56 -0400 Subject: [PATCH] Bug fix for saves putting actions metadata as a dict instead of a list when not used yet --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index ef785313..edb75a65 100644 --- a/aiserver.py +++ b/aiserver.py @@ -270,7 +270,7 @@ class vars: setauthornotetemplate = authornotetemplate # Saved author's note template in settings andepth = 3 # How far back in history to append author's note actions = structures.KoboldStoryRegister() # Actions submitted by user and AI - actions_metadata = {} # List of dictonaries, one dictonary for every action that contains information about the action like alternative options. + actions_metadata = [] # List of dictonaries, one dictonary for every action that contains information about the action like alternative options. # Contains at least the same number of items as actions. Back action will remove an item from actions, but not actions_metadata # Dictonary keys are: # Selected Text: (text the user had selected. None when this is a newly generated action)