data.model.repository: optimize by using kind_id

This commit is contained in:
Jimmy Zelinskie 2017-03-22 15:02:27 -04:00 committed by Joseph Schorr
parent 30b532254c
commit 45f14f220d

View file

@ -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():