On Friday, December 16, 2016 at 12:14:11 PM UTC-5, Simon Moon wrote:
>
>
> It seems m is not a Machine object. I think it should be clear what I want
> to do, but I can't figure what the
> SQLAlchemy way would be to do it....
>
replace this:
m = session.query(Machine.name).filter(...
with this:
m = session.query(Machine).filter(...
that's it.
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.