]> git.decadent.org.uk Git - dak.git/commitdiff
Add missing filter for query in scan_all().
authorTorsten Werner <twerner@debian.org>
Tue, 1 Mar 2011 20:02:35 +0000 (21:02 +0100)
committerTorsten Werner <twerner@debian.org>
Tue, 1 Mar 2011 20:02:35 +0000 (21:02 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/contents.py

index 3abc501d67b824d806d2662d40833fafca13299b..740c0b2942951a5ff6f38df9581e9dd376698222 100755 (executable)
@@ -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()