Remove unnecessary argument in limit manage

Change-Id: I2a7a99c72f24cafef848806620667c14b655f83e
This commit is contained in:
Hirofumi Ichihara 2016-01-05 19:54:20 +09:00
parent 70cd83daf2
commit 8daf493a7d
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ def get_limit_and_marker(request):
pagination, then return None.
"""
max_limit = _get_pagination_max_limit()
limit = _get_limit_param(request, max_limit)
limit = _get_limit_param(request)
if max_limit > 0:
limit = min(max_limit, limit) or max_limit
if not limit:
@ -108,7 +108,7 @@ def _get_pagination_max_limit():
return max_limit
def _get_limit_param(request, max_limit):
def _get_limit_param(request):
"""Extract integer limit from request or fail."""
try:
limit = int(request.GET.get('limit', 0))