mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-05-28 11:57:05 +00:00
Defer reaction logging until table existence is confirmed
Moved the "Processing reactions..." log entry to occur after the `message_add_on` table check. This prevents the log from appearing on the old WhatsApp schema
This commit is contained in:
@@ -485,7 +485,6 @@ def _get_reactions(db, data):
|
|||||||
"""
|
"""
|
||||||
Process message reactions.
|
Process message reactions.
|
||||||
"""
|
"""
|
||||||
logger.info("Processing reactions...")
|
|
||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -494,6 +493,8 @@ def _get_reactions(db, data):
|
|||||||
if c.fetchone()[0] == 0:
|
if c.fetchone()[0] == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
logger.info("Processing reactions...\r")
|
||||||
|
|
||||||
c.execute("""
|
c.execute("""
|
||||||
SELECT
|
SELECT
|
||||||
message_add_on.parent_message_row_id,
|
message_add_on.parent_message_row_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user