import sqlite3 conn = sqlite3.connect("/workspace/personal/blu/saman_bank_all_transactions.sqlite") cur = conn.cursor() dates = ['1405/04/15', '1405/04/16', '1405/04/31', '1405/05/01', '1405/05/17', '1405/05/18', '1405/06/03', '1405/06/04', '1405/06/15', '1405/06/16'] print("=== WITHDRAWALS AROUND RETURN DATES ===") for d in dates: cur.execute("SELECT jdate, withdrawal_toman, description FROM saman_transactions WHERE jdate = ? AND withdrawal_toman > 0", (d,)) rows = cur.fetchall() print(f"\n--- Date {d} ({len(rows)} withdrawals) ---") for r in rows: if r[1] in [576000.0, 410000.0, 475000.0, 1519000.0] or 'پايا' in r[2]: print(r)