From: Torsten Werner Date: Tue, 1 Mar 2011 20:02:35 +0000 (+0100) Subject: Add missing filter for query in scan_all(). X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=fc64493aba61bdd089d9418e697ce7736a90e7ef;p=dak.git Add missing filter for query in scan_all(). Signed-off-by: Torsten Werner --- 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()