Dexter2389 / whatsapp-backup-chat-viewer

Extract WhatsApp conversations from the app's SQLite database and exporting them as JSON or TXT files
BSD 2-Clause "Simplified" License
34 stars 5 forks source link

[BUG] Phone filter does not work #38

Open kuhnst-akros-ch opened 1 month ago

kuhnst-akros-ch commented 1 month ago

Bug Summary passing -e 1234 to main.py fails with:

line 100, in build_chat_for_given_id_or_phone_number
    exec = msgdb_cursor.execute(query)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: no such column: None

Because the chat_id is None in: query = f"""SELECT message._id FROM 'message' WHERE message.chat_row_id={chat.get("chat_id")}"""

I don't need the phone filter though ;-)