Bnaya's assorted features

This commit is contained in:
Bnaya Peretz
2024-07-08 23:06:41 +03:00
committed by KnugiHK
parent 33763b5f41
commit be469aed93
7 changed files with 201 additions and 6 deletions

View File

@@ -158,6 +158,8 @@ def contacts(db, data):
c.execute("""SELECT count() FROM wa_contacts""")
total_row_number = c.fetchone()[0]
print(f"Processing contacts...({total_row_number})")
if total_row_number == 0:
print("No contacts profiles found in database, consider using --enrich-names-from-vcards when exported contacts from google")
c.execute("""SELECT jid, COALESCE(display_name, wa_name) as display_name, status FROM wa_contacts; """)
row = c.fetchone()