diff --git a/data/model.py b/data/model.py index c70013b9b..31a432b88 100644 --- a/data/model.py +++ b/data/model.py @@ -112,9 +112,7 @@ def get_visible_repositories(username=None): def get_matching_repositories(repo_term, username=None): visible = get_visible_repositories(username) search_clauses = (Repository.name ** ('%' + repo_term + '%') | - Repository.namespace ** ('%' + repo_term + '%') | - Repository.description ** ('%' + repo_term + '%')) - + Repository.namespace ** ('%' + repo_term + '%')) final = visible.where(search_clauses).limit(10) return list(final)