Fixed broken query

This commit is contained in:
Joseph Schorr 2014-09-30 13:19:32 -04:00
parent 5f776771d1
commit 6c520b8b0b

View file

@ -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.')