提交 fc64493a 编写于 作者: T Torsten Werner

Add missing filter for query in scan_all().

Signed-off-by: NTorsten Werner <twerner@debian.org>
上级 340ed9a4
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册