IS NULL. We need those where 'until' IS NULL. -.-
This commit is contained in:
parent
3ec4780385
commit
5fc9078ea8
1 changed files with 2 additions and 2 deletions
|
@ -75,12 +75,12 @@ class dbObject:
|
|||
return setuptools.getDate(str(self.getNext()["%s(SUBSTR(timestamp,0,11))" % mode]))
|
||||
|
||||
def getFollowers(db):
|
||||
db.executeQuery("SELECT id FROM followers WHERE `until` IS NOT NULL;")
|
||||
db.executeQuery("SELECT id FROM followers WHERE `until` IS NULL;")
|
||||
for i in db.getAll():
|
||||
yield i[0]
|
||||
|
||||
def getFollowing(db):
|
||||
db.executeQuery("SELECT id FROM following WHERE `until` IS NOT NULL;")
|
||||
db.executeQuery("SELECT id FROM following WHERE `until` IS NULL;")
|
||||
for i in db.getAll():
|
||||
yield i[0]
|
||||
|
||||
|
|
Loading…
Reference in a new issue