Fixed import chat

This commit is contained in:
jeffser 2024-08-11 14:55:18 -06:00
parent 175cfad81c
commit 938ace91c1

View File

@ -1615,6 +1615,7 @@ Generate a title following these rules:
for chat_name, chat_content in data.items():
new_chat_name = self.generate_numbered_name(chat_name, list(self.chats['chats'].keys()))
self.chats['chats'][new_chat_name] = chat_content
self.chats["order"].insert(0, new_chat_name)
src_path = os.path.join(temp_dir, chat_name)
if os.path.exists(src_path) and os.path.isdir(src_path):
dest_path = os.path.join(self.data_dir, "chats", new_chat_name)