Vars Migration Fix for back/redo

Fix for pytest for back/redo and model loading with disk caching
This commit is contained in:
ebolam
2022-06-22 14:13:44 -04:00
parent cd64c43f0e
commit 83c0b9ee1e
4 changed files with 24 additions and 24 deletions

View File

@@ -261,7 +261,7 @@ class KoboldStoryRegister(object):
def __next__(self):
self.itter += 1
if self.itter < len(self.actions):
if self.itter <= self.action_count:
return self.itter
else:
raise StopIteration
@@ -421,10 +421,7 @@ class KoboldStoryRegister(object):
return text
def get_last_key(self):
if self.action_count >= 0:
return self.action_count
else:
return 0
return self.action_count
def get_last_item(self):
if self.action_count >= 0: