mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-25 23:41:33 +00:00
Some left-over
This commit is contained in:
@@ -315,7 +315,7 @@ def messages(db, data):
|
|||||||
data[content["key_remote_jid"]].messages[content["_id"]].meta = True
|
data[content["key_remote_jid"]].messages[content["_id"]].meta = True
|
||||||
else:
|
else:
|
||||||
if content["data"] is None:
|
if content["data"] is None:
|
||||||
del data[content["key_remote_jid"]].messages[content["_id"]]
|
data[content["key_remote_jid"]].delete_message(content["_id"])
|
||||||
else:
|
else:
|
||||||
# Private chat
|
# Private chat
|
||||||
if content["data"] is None and content["thumb_image"] is None:
|
if content["data"] is None and content["thumb_image"] is None:
|
||||||
@@ -382,8 +382,7 @@ def media(db, data, media_folder):
|
|||||||
ON chat._id = message.chat_row_id
|
ON chat._id = message.chat_row_id
|
||||||
INNER JOIN jid
|
INNER JOIN jid
|
||||||
ON jid._id = chat.jid_row_id
|
ON jid._id = chat.jid_row_id
|
||||||
|
ORDER BY jid.raw_string ASC""")
|
||||||
ORDER BY jid.raw_string ASC""")
|
|
||||||
content = c.fetchone()
|
content = c.fetchone()
|
||||||
mime = MimeTypes()
|
mime = MimeTypes()
|
||||||
while content is not None:
|
while content is not None:
|
||||||
@@ -479,7 +478,6 @@ def create_html(data, output_folder, template=None, embedded=False):
|
|||||||
if len(data[contact].messages) == 0:
|
if len(data[contact].messages) == 0:
|
||||||
continue
|
continue
|
||||||
phone_number = contact.split('@')[0]
|
phone_number = contact.split('@')[0]
|
||||||
file_name = phone_number
|
|
||||||
if "-" in contact:
|
if "-" in contact:
|
||||||
file_name = ""
|
file_name = ""
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user