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, | ||||
|                                     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) | ||||
|  |  | |||
		Reference in a new issue