Use len(photos) >= limit instead of ==.

master
voussoir 2020-04-02 22:21:54 -07:00
parent e5f2b788fe
commit 5a394c4376
1 changed files with 1 additions and 1 deletions

View File

@ -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)