This line:
used_emails = [row.email for row
in db.execute(select([halo4.c.email], halo4.c.email!=''))]
Returns:
['
[email protected]', '
[email protected]', '
[email protected]', '
[email protected]', '
[email protected]']
I use this to find
a match:
if recipient in used_emails:
If it finds
a match I need to pull another field (halo4.c.code) from the database in the same row. Any suggestions on how to do this?