mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-09-03 17:59:31 +02:00
Make sure all messages are extracted chronologically #64
This commit is contained in:
@@ -226,7 +226,8 @@ def messages(db, data, media_folder, timezone_offset):
|
|||||||
LEFT JOIN receipt_user
|
LEFT JOIN receipt_user
|
||||||
ON receipt_user.message_row_id = messages._id
|
ON receipt_user.message_row_id = messages._id
|
||||||
WHERE messages.key_remote_jid <> '-1'
|
WHERE messages.key_remote_jid <> '-1'
|
||||||
GROUP BY message._id;"""
|
GROUP BY message._id
|
||||||
|
ORDER BY timestamp ASC;"""
|
||||||
)
|
)
|
||||||
except sqlite3.OperationalError:
|
except sqlite3.OperationalError:
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -85,7 +85,8 @@ def messages(db, data, media_folder, timezone_offset):
|
|||||||
LEFT JOIN ZWAMEDIAITEM
|
LEFT JOIN ZWAMEDIAITEM
|
||||||
ON ZWAMESSAGE.Z_PK = ZWAMEDIAITEM.ZMESSAGE
|
ON ZWAMESSAGE.Z_PK = ZWAMEDIAITEM.ZMESSAGE
|
||||||
INNER JOIN ZWACHATSESSION
|
INNER JOIN ZWACHATSESSION
|
||||||
ON ZWAMESSAGE.ZCHATSESSION = ZWACHATSESSION.Z_PK;""")
|
ON ZWAMESSAGE.ZCHATSESSION = ZWACHATSESSION.Z_PK
|
||||||
|
ORDER BY ZMESSAGEDATE ASC;""")
|
||||||
i = 0
|
i = 0
|
||||||
content = c.fetchone()
|
content = c.fetchone()
|
||||||
while content is not None:
|
while content is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user