From 1694ae7dd930c3de27d102ebb91d51a0dbded635 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 24 Jan 2026 01:47:45 +0800 Subject: [PATCH] Update utility.py --- Whatsapp_Chat_Exporter/utility.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/utility.py b/Whatsapp_Chat_Exporter/utility.py index fb55f3e..8de2e9b 100644 --- a/Whatsapp_Chat_Exporter/utility.py +++ b/Whatsapp_Chat_Exporter/utility.py @@ -765,7 +765,7 @@ def check_jid_map(db: sqlite3.Connection) -> bool: """ cursor = db.cursor() cursor.execute("SELECT name FROM sqlite_master WHERE type='table' AND name='jid_map'") - return cursor.fetchone()is not None + return cursor.fetchone() is not None def get_jid_map_join(jid_map_exists: bool) -> str: @@ -815,6 +815,7 @@ def get_transcription_selection(db: sqlite3.Connection) -> str: else: return "NULL AS transcription_text" + def setup_template(template: Optional[str], no_avatar: bool, experimental: bool = False) -> jinja2.Template: """ Sets up the Jinja2 template environment and loads the template.