File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 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
44Basics:
@@ -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 :
You can’t perform that action at this time.
0 commit comments