fix pagination of tags in API

Fixes #461.
This commit is contained in:
Jimmy Zelinskie 2015-09-09 15:29:50 -04:00
parent e81a50aa9a
commit d55ab78fbe
2 changed files with 15 additions and 1 deletions

View file

@ -43,7 +43,7 @@ class ListRepositoryTags(RepositoryParamResource):
specific_tag = args.get('specificTag') or None
page = min(1, args.get('start', 1))
page = max(1, args.get('page', 1))
limit = min(100, max(1, args.get('limit', 50)))
# Note: We ask for limit+1 here, so we can check to see if there are