From 48c3fa965f4272e6389cf914699594d637a0213d Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Fri, 29 Dec 2023 18:32:38 +0800 Subject: [PATCH] Bug fix on wrong table name for old schema --- Whatsapp_Chat_Exporter/extract.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Whatsapp_Chat_Exporter/extract.py b/Whatsapp_Chat_Exporter/extract.py index 8f0ff6b..26a2a5c 100644 --- a/Whatsapp_Chat_Exporter/extract.py +++ b/Whatsapp_Chat_Exporter/extract.py @@ -200,7 +200,7 @@ def messages(db, data, media_folder, timezone_offset): jid_new.raw_string as new_jid, jid_global.type as jid_type, group_concat(receipt_user.receipt_timestamp) as receipt_timestamp, - group_concat(message.received_timestamp) as received_timestamp, + group_concat(messages.received_timestamp) as received_timestamp, group_concat(receipt_user.read_timestamp) as read_timestamp, group_concat(receipt_user.played_timestamp) as played_timestamp, group_concat(messages.read_device_timestamp) as read_device_timestamp @@ -226,8 +226,8 @@ def messages(db, data, media_folder, timezone_offset): LEFT JOIN receipt_user ON receipt_user.message_row_id = messages._id WHERE messages.key_remote_jid <> '-1' - GROUP BY message._id - ORDER BY timestamp ASC;""" + GROUP BY messages._id + ORDER BY messages.timestamp ASC;""" ) except sqlite3.OperationalError: try: