data.interfaces.v1: explicitly use kwargs

This fixes the function from accidentally using the wrong arguments
positionally for the new `repo_kind` kwarg.
This commit is contained in:
Jimmy Zelinskie 2017-03-21 15:36:46 -04:00
parent dae2cc8c3a
commit f086eea754

View file

@ -383,8 +383,9 @@ class PreOCIModel(DockerRegistryV1DataInterface):
return bool(model.oauth.validate_access_token(token))
def get_sorted_matching_repositories(self, search_term, filter_username=None, offset=0, limit=25):
repos = model.repository.get_filtered_matching_repositories(search_term, filter_username,
offset, limit)
repos = model.repository.get_filtered_matching_repositories(search_term,
filter_username=filter_username,
offset=offset, limit=limit)
return [_repository_for_repo(repo) for repo in repos]