Add preflight check to see if transciption column exists

This commit is contained in:
KnugiHK
2026-01-19 22:46:30 +08:00
parent 035e61c4d7
commit 7dbd0dbe3c
4 changed files with 58 additions and 3 deletions

View File

@@ -16,6 +16,7 @@ from Whatsapp_Chat_Exporter.utility import APPLE_TIME, CLEAR_LINE, CURRENT_TZ_OF
from Whatsapp_Chat_Exporter.utility import readable_to_bytes, safe_name, bytes_to_readable
from Whatsapp_Chat_Exporter.utility import import_from_json, incremental_merge, check_update
from Whatsapp_Chat_Exporter.utility import telegram_json_format, convert_time_unit, DbType
from Whatsapp_Chat_Exporter.utility import get_transcription_selection
from argparse import ArgumentParser, SUPPRESS
from datetime import datetime
from getpass import getpass
@@ -550,6 +551,7 @@ def process_messages(args, data: ChatCollection) -> None:
# Process messages
if args.android:
message_handler = android_handler
data.set_system("transcription_selection", get_transcription_selection(db))
else:
message_handler = ios_handler