From b371587d654714d18043a5cc1a46d949870232cb Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sun, 9 Apr 2023 02:05:17 +0800 Subject: [PATCH] Bug fix on ChatStore initialization --- Whatsapp_Chat_Exporter/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/extract.py b/Whatsapp_Chat_Exporter/extract.py index d863c4c..a9c77d6 100644 --- a/Whatsapp_Chat_Exporter/extract.py +++ b/Whatsapp_Chat_Exporter/extract.py @@ -157,7 +157,7 @@ def contacts(db, data): c.execute("""SELECT jid, display_name FROM wa_contacts; """) row = c.fetchone() while row is not None: - data[row[0]] = {"name": row[1], "messages": {}} + data[row["jid"]] = ChatStore(row["display_name"]) row = c.fetchone()