Remove sort by description, which is slow (and fairly useless anyway)

This commit is contained in:
Joseph Schorr 2015-05-06 20:55:31 -04:00
parent a46d367276
commit 73193e2ab5

View file

@ -904,8 +904,9 @@ def get_visible_repositories(username=None, include_public=True, page=None,
limit=limit, namespace=namespace,
select_models=[Repository, Namespace, Visibility])
if sort:
query = query.order_by(Repository.description.desc())
# TODO(jschorr): Reenable with a better sorting method
#if sort:
# query = query.order_by(Repository.description.desc())
if limit:
query = query.limit(limit)