Changeset - 509b0dca0a3a
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-08-06 22:07:00
mads@kiilerich.com
admin: drop c.repos_list assignment in repos index - it is only used when actually editing a repo
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
kallithea/controllers/admin/repos.py
Show inline comments
 
@@ -99,11 +99,9 @@ class ReposController(BaseRepoController
 
        return defaults
 

	
 
    def index(self, format='html'):
 
        _list = Repository.query(sorted=True).all()
 

	
 
        c.repos_list = RepoList(_list, perm_level='admin')
 
        repos_list = RepoList(Repository.query(sorted=True).all(), perm_level='admin')
 
        # the repo list will be filtered to only show repos where the user has read permissions
 
        repos_data = RepoModel().get_repos_as_dict(c.repos_list, admin=True)
 
        repos_data = RepoModel().get_repos_as_dict(repos_list, admin=True)
 
        # data used to render the grid
 
        c.data = repos_data
 

	
0 comments (0 inline, 0 general)