[sqlalchemy] Re: can't adapt type 'KeyedTuple'

2014-11-21 Thread jo
Yes, it works, now! Thanks a lot, Jonathan j Il giorno giovedì 20 novembre 2014 19:35:03 UTC+1, Jonathan Vanasco ha scritto: SqlAlchemy returns column results as a `KeyedTuple`. It's similar to `collections.namedtuple` in the standard library Looking at your code, my guess is that you

[sqlalchemy] Re: can't adapt type 'KeyedTuple'

2014-11-20 Thread Jonathan Vanasco
SqlAlchemy returns column results as a `KeyedTuple`. It's similar to `collections.namedtuple` in the standard library Looking at your code, my guess is that you had something like this: ids = session.query(Model.id).filter(...).all() and are then passing those ids into a query like this: