Merge "Remove redundant query from get_bay_by_uuid"

This commit is contained in:
Jenkins 2015-01-28 23:39:12 +00:00 committed by Gerrit Code Review
commit ce918d5689
1 changed files with 0 additions and 1 deletions

View File

@ -177,7 +177,6 @@ class Connection(api.Connection):
user_id = auth_token['user']['id']
query = model_query(models.Bay).filter_by(uuid=bay_uuid,
project_id=project_id, user_id=user_id)
query = model_query(models.Bay).filter_by(uuid=bay_uuid)
try:
return query.one()
except NoResultFound: