Maybe in sqlalchemy add attribute like "flat=True" that return list with 
values (instead of tuples with values) ?


вторник, 27 марта 2012 г., 19:27:04 UTC+4 пользователь lestat написал:
>
> If I want get list of id's of table I can get it with
>
> z = db.session.query(MyTable.id).all()
>
> but it return list like [(7), (13)],
> but I want like [7, 13].
>
> Now I do it with [x[0] for x in z]
>
> Maybe is exists better solution?
>
> Thanks
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/mrvUmqkWpbwJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to