Fix for old world info saves in new format

This commit is contained in:
ebolam
2022-09-21 10:58:03 -04:00
parent c5dc7ce834
commit c098f8b32a
2 changed files with 6 additions and 1 deletions

View File

@@ -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: