import sqlite3 import openpyxl print("=== CHECK SAMAN TRANSACTIONS FOR SHAHAB SHAHLAEI & AMIR MOHAMMADI ===") conn = sqlite3.connect("/workspace/personal/blu/saman_bank_all_transactions.sqlite") cur = conn.cursor() # Search all occurrences of Shahlaei or Mohammadi or Afriteh in Saman cur.execute(""" SELECT jdate, deposit_toman, withdrawal_toman, balance_toman, description, tracking_no FROM saman_transactions WHERE description LIKE '%شهلائ%' OR description LIKE '%شهلایی%' OR description LIKE '%شهاب%' OR description LIKE '%امیر محمدی%' OR description LIKE '%زردخشو%' OR description LIKE '%عفریته%' OR description LIKE '%افریته%' OR description LIKE '%آنلاک%' OR description LIKE '%1920%' OR description LIKE '%نوزده بیست%' ORDER BY rowid ASC """) rows = cur.fetchall() print(f"Total rows found in Saman: {len(rows)}") for r in rows: print(r)