Nice,I feel really stupid now but thank you very much, will verify this later. Best, Simon..
Am 16.12.2016 6:42 nachm. schrieb "Jonathan Vanasco" <jonat...@findmeon.com >: > > > 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 a topic in the > Google Groups "sqlalchemy" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/sqlalchemy/Q1fV9VcaKog/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > sqlalchemy+unsubscr...@googlegroups.com. > To post to this group, send email to sqlalchemy@googlegroups.com. > Visit this group at https://groups.google.com/group/sqlalchemy. > For more options, visit https://groups.google.com/d/optout. > -- 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 sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at https://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.