changeset 7796:509b0dca0a3a

admin: drop c.repos_list assignment in repos index - it is only used when actually editing a repo
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 06 Aug 2019 22:07:00 +0200
parents d6af0bc38471
children e7ba4c0ec050
files kallithea/controllers/admin/repos.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/controllers/admin/repos.py	Tue Aug 06 21:31:13 2019 +0200
+++ b/kallithea/controllers/admin/repos.py	Tue Aug 06 22:07:00 2019 +0200
@@ -99,11 +99,9 @@
         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