This commit is contained in:
Timothy Jaeryang Baek committed 2025-11-23 19:47:21 -05:00
1 parent a5c359aede
commit 5148970ef5
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -215,12 +215,12 @@ class ChatTable:
return chat
def import_chats(
self, user_id: str, chats: list[ChatImportForm]
self, user_id: str, chat_import_forms: list[ChatImportForm]
) -> list[ChatModel]:
with get_db() as db:
chats = []
for form_data in chats:
for form_data in chat_import_forms:
chat = self._chat_import_form_to_chat_model(user_id, form_data)
chats.append(Chat(**chat.model_dump()))