euphorie / Euphorie

Euphorie is a tool for risk assessment
https://pythonhosted.org/Euphorie/
GNU General Public License v2.0
11 stars 6 forks source link

Fix heterogeneous query #616

Closed ale-rt closed 1 year ago

ale-rt commented 1 year ago

Fixes:

sqlalchemy.exc.ProgrammingError: sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'Row'

The problem happened because the filter was mixing up an integer id and a Row object .

((Pdb)) account_ids
{3, (32276,)}
((Pdb)) tuple(account_ids)[1].owner_id
32276