Sync changes

This commit is contained in:
KnugiHK
2023-06-13 19:46:09 +08:00
parent e0c2cf5f66
commit dd5ec2219c
2 changed files with 32 additions and 12 deletions
+2 -1
View File
@@ -2,13 +2,14 @@ from datetime import datetime
from mimetypes import MimeTypes
import os
from Whatsapp_Chat_Exporter.data_model import ChatStore, Message
from Whatsapp_Chat_Exporter.utility import Device
def messages(path, data, assume_first_as_me=False):
"""Extracts messages from the exported file"""
with open(path, "r", encoding="utf8") as file:
you = ""
data["ExportedChat"] = ChatStore()
data["ExportedChat"] = ChatStore(Device.EXPORTED)
chat = data["ExportedChat"]
total_row_number = len(file.readlines())
file.seek(0)