From 6c520b8b0bff9fa5d19d744dfc5ff4374604245a Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 30 Sep 2014 13:19:32 -0400 Subject: [PATCH] Fixed broken query --- data/model/legacy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/model/legacy.py b/data/model/legacy.py index 52b20e2be..ba1fdd81f 100644 --- a/data/model/legacy.py +++ b/data/model/legacy.py @@ -2038,7 +2038,8 @@ def confirm_email_authorization_for_repo(code): .select(RepositoryAuthorizedEmail, Repository, Namespace) .join(Repository) .join(Namespace, on=(Repository.namespace_user == Namespace.id)) - .get(RepositoryAuthorizedEmail.code == code)) + .where(RepositoryAuthorizedEmail.code == code) + .get()) except RepositoryAuthorizedEmail.DoesNotExist: raise DataModelException('Invalid confirmation code.')