Remove sort by description, which is slow (and fairly useless anyway)
This commit is contained in:
parent
a46d367276
commit
73193e2ab5
1 changed files with 3 additions and 2 deletions
|
@ -904,8 +904,9 @@ def get_visible_repositories(username=None, include_public=True, page=None,
|
||||||
limit=limit, namespace=namespace,
|
limit=limit, namespace=namespace,
|
||||||
select_models=[Repository, Namespace, Visibility])
|
select_models=[Repository, Namespace, Visibility])
|
||||||
|
|
||||||
if sort:
|
# TODO(jschorr): Reenable with a better sorting method
|
||||||
query = query.order_by(Repository.description.desc())
|
#if sort:
|
||||||
|
# query = query.order_by(Repository.description.desc())
|
||||||
|
|
||||||
if limit:
|
if limit:
|
||||||
query = query.limit(limit)
|
query = query.limit(limit)
|
||||||
|
|
Reference in a new issue