From d89bd2d589d924f6fd38de42e0e60e6edaa977a0 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 8 Jul 2012 12:29:54 -0600 Subject: [PATCH] daklib/archive.py: use SQLAlchemy 0.6 syntax for join --- daklib/archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5