From: Ansgar Burchardt Date: Sun, 12 Aug 2012 14:30:25 +0000 (+0200) Subject: dak/generate_packages_sources2.py: remove .all() when we need the query object X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=5ab2c8410a9d7aed3dfc065e4f06afca4a4a6589;p=dak.git dak/generate_packages_sources2.py: remove .all() when we need the query object --- diff --git a/dak/generate_packages_sources2.py b/dak/generate_packages_sources2.py index 0d78d2d0..478aadf1 100755 --- a/dak/generate_packages_sources2.py +++ b/dak/generate_packages_sources2.py @@ -346,7 +346,7 @@ def main(): print "I: Cannot find suite %s" % s logger.log(['Cannot find suite %s' % s]) else: - query = session.query(Suite).filter(Suite.untouchable == False).all() + query = session.query(Suite).filter(Suite.untouchable == False) if 'Archive' in Options: query = query.join(Suite.archive).filter(Archive.archive_name==Options['Archive']) suites = query.all()