Re: [sqlalchemy] Appending a where clause to a query

2011-04-29 Thread Luka Novsak
Ohh, yes indeed (d'oh!). Thanks. On 4/27/11, King Simon-NFHD78 simon.k...@motorolasolutions.com wrote: -Original Message- From: sqlalchemy@googlegroups.com [mailto:sqlalchemy@googlegroups.com] On Behalf Of Luka Novsak Sent: 27 April 2011 05:32 To: sqlalchemy Subject: [sqlalchemy

[sqlalchemy] Appending a where clause to a query

2011-04-27 Thread Luka Novsak
The docs on Select's where() method say: return a new select() construct with the given expression added to its WHERE clause, joined to the existing clause via AND, if any. But this doesn't seem to happen. This is my code: def posts_per_dow(self, start_date=None, end_date=None):