From: Ansgar Burchardt Date: Sun, 8 Jul 2012 18:29:54 +0000 (-0600) Subject: daklib/archive.py: use SQLAlchemy 0.6 syntax for join X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d89bd2d589d924f6fd38de42e0e60e6edaa977a0;p=dak daklib/archive.py: use SQLAlchemy 0.6 syntax for join --- diff --git a/daklib/archive.py b/daklib/archive.py index b97d2f03..edb99914 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -802,7 +802,7 @@ class ArchiveUpload(object): changed_by = get_or_set_maintainer(control.get('Changed-By', control['Maintainer']), self.session) if source_suites is None: - source_suites = self.session.query(Suite).join(VersionCheck, VersionCheck.reference_id == Suite.suite_id).filter(VersionCheck.suite == suite).subquery() + source_suites = self.session.query(Suite).join((VersionCheck, VersionCheck.reference_id == Suite.suite_id)).filter(VersionCheck.suite == suite).subquery() source = self.changes.source if source is not None: