Add test fix and make sure Quay ups the connection count in its container

This commit is contained in:
Joseph Schorr 2014-08-25 14:23:21 -04:00
parent ee3ad9e7c3
commit 09a1c4d2b5
4 changed files with 12 additions and 2 deletions

View file

@ -428,7 +428,11 @@ def get_search():
if user is not None:
username = user.username
matching = model.get_matching_repositories(query, username)
if query:
matching = model.get_matching_repositories(query, username)
else:
matching = []
results = [result_view(repo) for repo in matching
if (repo.visibility.name == 'public' or
ReadRepositoryPermission(repo.namespace, repo.name).can())]