data.model.repository: optimize by using kind_id
This commit is contained in:
parent
30b532254c
commit
45f14f220d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
|
||||
def get_repo_kind_name(repo):
|
||||
return Repository.kind.get_name(repo.kind)
|
||||
return Repository.kind.get_name(repo.kind_id)
|
||||
|
||||
|
||||
def get_repository_count():
|
||||
|
|
Reference in a new issue