IS NULL. We need those where 'until' IS NULL. -.-

This commit is contained in:
Klaus-Uwe Mitterer 2016-08-03 15:26:31 +02:00
parent 3ec4780385
commit 5fc9078ea8

View file

@ -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]