3 Commits

Author SHA1 Message Date
KnugiHK
6896c9663e Bump version 2025-02-16 11:19:17 +08:00
KnugiHK
6dda2eb6d5 Fix handling of empty quoted_content 2025-02-16 11:17:38 +08:00
KnugiHK
1706f3e9e5 Fixed the inclusion of the template files 2025-02-16 10:44:53 +08:00
3 changed files with 7 additions and 4 deletions

View File

@@ -213,7 +213,7 @@ options:
Path to call database (default: 1b432994e958845fffe8e2f190f26d1511534088) iOS only
--headline HEADLINE The custom headline for the HTML output. Use '??' as a placeholder for the chat name
WhatsApp Chat Exporter: 0.11.0 Licensed with MIT. See https://wts.knugi.dev/docs?dest=osl for all open source
WhatsApp Chat Exporter: 0.11.2 Licensed with MIT. See https://wts.knugi.dev/docs?dest=osl for all open source
licenses.
```

View File

@@ -196,7 +196,10 @@ def messages(db, data, media_folder, timezone_offset, filter_date, filter_chat,
FROM ZWAMESSAGE
WHERE ZSTANZAID LIKE '{message.reply}%'""")
quoted_content = cursor2.fetchone()
message.quoted_data = quoted_content["ZTEXT"] or quoted_content
if quoted_content and "ZTEXT" in quoted_content:
message.quoted_data = quoted_content["ZTEXT"]
else:
message.quoted_data = None
if content["ZMESSAGETYPE"] == 15: # Sticker
message.sticker = True

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "whatsapp-chat-exporter"
version = "0.11.0"
version = "0.11.2"
description = "A Whatsapp database parser that provides history of your Whatsapp conversations in HTML and JSON. Android, iOS, iPadOS, Crypt12, Crypt14, Crypt15 supported."
readme = "README.md"
authors = [
@@ -58,4 +58,4 @@ where = ["."]
include = ["Whatsapp_Chat_Exporter"]
[tool.setuptools.package-data]
template = ["whatsapp.html"]
Whatsapp_Chat_Exporter = ["*.html"]