From 5fc9078ea8e1afcbabe250cf752cd380dcbda334 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 3 Aug 2016 15:26:31 +0200 Subject: [PATCH] IS NULL. We need those where 'until' IS NULL. -.- --- dbtools/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbtools/__init__.py b/dbtools/__init__.py index 5087cb5..46d440a 100644 --- a/dbtools/__init__.py +++ b/dbtools/__init__.py @@ -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]