i'm trying to call a query in pymysql where i have two different values, one is a string and the second one is an array of strings but when i try i get an error. This is the code:
def select_transactions(cursor,addresses):
#query for select all the transactions id and description from proposed_transactions table
get_query = "SELECT unsigned_tx, sent_date FROM proposed_transactions WHERE status =%s AND msig_address IN ('%s')"
cursor.execute(get_query,( "SENT" , addresses))
result = mappedfetchall(cursor)
return result
How can i call this query with this two different parameters in wich one is WHERE VALUE = %s and one is WHERE value IN %s ? Can someone help me? thanks