この行:
used_emails = [row.email for row
in db.execute(select([halo4.c.email], halo4.c.email!=''))]
戻り値:
['first.last@domain.com', 'first.last@domain.com', 'first.last@domain.com', 'first.last@domain.com', 'first.last@domain.com']
私はこれを使って一致を見つけます:
if recipient in used_emails:
一致が見つかった場合は、同じ行のデータベースから別のフィールド (halo4.c.code) を取得する必要があります。これを行う方法に関する提案はありますか?