Mercurial > p > roundup > code
diff roundup/backends/rdbms_common.py @ 1719:eeb167fb8faf
*** empty log message ***
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 03 Jul 2003 23:46:34 +0000 |
| parents | 3d627e34f18e |
| children | 5ca448ff8052 |
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py Tue Jul 01 08:21:57 2003 +0000 +++ b/roundup/backends/rdbms_common.py Thu Jul 03 23:46:34 2003 +0000 @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.56 2003-06-24 08:06:27 anthonybaxter Exp $ +# $Id: rdbms_common.py,v 1.57 2003-07-03 23:43:46 richard Exp $ ''' Relational database (SQL) backend common code. Basics: @@ -1741,7 +1741,10 @@ ''' # flip the sense of the 'retired' flag if we don't want all of them if retired is not None: - args = (((retired==0) and 1) or 0, ) + if retired: + args = (0, ) + else: + args = (1, ) sql = 'select id from _%s where __retired__ <> %s'%(self.classname, self.db.arg) else:
