mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for old world info saves in new format
This commit is contained in:
@@ -1525,6 +1525,11 @@ class KoboldWorldInfo(object):
|
||||
self.world_info[item][column] = None
|
||||
if "wpp" not in self.world_info[item]:
|
||||
self.world_info[item]['wpp'] = {'name': "", 'type': "", 'format': "W++", 'attributes': {}}
|
||||
|
||||
#If we have content but not manual_text, let's move it over:
|
||||
if 'manual_text' not in self.world_info[item]:
|
||||
self.world_info[item]['manual_text'] = self.world_info[item]['content']
|
||||
|
||||
try:
|
||||
self.sync_world_info_to_old_format()
|
||||
except:
|
||||
|
Reference in New Issue
Block a user