Use len(photos) >= limit instead of ==.
This commit is contained in:
parent
e5f2b788fe
commit
5a394c4376
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ def get_search_core():
|
||||||
original_params = request.args.to_dict()
|
original_params = request.args.to_dict()
|
||||||
original_params['limit'] = limit
|
original_params['limit'] = limit
|
||||||
|
|
||||||
if limit and len(photos) == limit:
|
if limit and len(photos) >= limit:
|
||||||
next_params = original_params.copy()
|
next_params = original_params.copy()
|
||||||
next_params['offset'] = offset + limit
|
next_params['offset'] = offset + limit
|
||||||
next_params = helpers.dict_to_params(next_params)
|
next_params = helpers.dict_to_params(next_params)
|
||||||
|
|
Loading…
Reference in a new issue