Skip to content

Commit f56e415

Browse files
author
Anthony Baxter
committed
sqlite backend now passes all tests under 2.3.
Searching for other parts of the code that was assigning the value of a boolean test (either =.*not or =.*==) showed nothing else that looked likely.
1 parent 5d1f555 commit f56e415

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

roundup/backends/rdbms_common.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.55 2003-04-22 20:53:54 kedder Exp $
1+
# $Id: rdbms_common.py,v 1.56 2003-06-24 08:06:27 anthonybaxter Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -1739,10 +1739,9 @@ def getnodeids(self, retired=None):
17391739
Set retired=None to get all nodes. Otherwise it'll get all the
17401740
retired or non-retired nodes, depending on the flag.
17411741
'''
1742-
# flip the sense of the flag if we don't want all of them
1742+
# flip the sense of the 'retired' flag if we don't want all of them
17431743
if retired is not None:
1744-
retired = not retired
1745-
args = (retired, )
1744+
args = (((retired==0) and 1) or 0, )
17461745
sql = 'select id from _%s where __retired__ <> %s'%(self.classname,
17471746
self.db.arg)
17481747
else:

0 commit comments

Comments
 (0)