mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Vars Migration Fix for back/redo
Fix for pytest for back/redo and model loading with disk caching
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user