From fc64493aba61bdd089d9418e697ce7736a90e7ef Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Tue, 1 Mar 2011 21:02:35 +0100 Subject: [PATCH] Add missing filter for query in scan_all(). Signed-off-by: Torsten Werner --- daklib/contents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/contents.py b/daklib/contents.py index 3abc501d..740c0b29 100755 --- a/daklib/contents.py +++ b/daklib/contents.py @@ -213,7 +213,7 @@ class ContentsScanner(object): argument. ''' session = DBConn().session() - query = session.query(DBBinary) + query = session.query(DBBinary).filter(DBBinary.contents == None) if limit is not None: query = query.limit(limit) threadpool = ThreadPool() -- 2.39.5