Fix typos in data model

This commit is contained in:
Joseph Schorr 2017-03-23 11:14:08 -04:00
parent 05ce571e3e
commit 917d5e2550
2 changed files with 2 additions and 2 deletions

View file

@ -457,7 +457,7 @@ def _get_sorted_matching_repositories(lookup_value, repo_kind='image', include_p
.select(Repository, Namespace)
.join(Namespace, on=(Namespace.id == Repository.namespace_user))
.where(clause,
Repository.repo_kind == Repository.repo_kind.get_id(repo_kind))
Repository.kind == Repository.kind.get_id(repo_kind))
.group_by(Repository.id, Namespace.id))
if not include_private:

View file

@ -42,7 +42,7 @@ def delete_channel(repo, channel_name):
def create_or_update_channel(repo, channel_name, tag_name):
""" Creates or updates a channel to include a particular tag. """
tag = tag_model.get_tag(repo, tag_name, 'release')
return tag.create_or_update_tag(repo, channel_name, linked_tag=tag, tag_kind="channel")
return tag_model.create_or_update_tag(repo, channel_name, linked_tag=tag, tag_kind="channel")
def get_repo_channels(repo):