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

This commit is contained in:
voussoir 2020-04-02 22:21:54 -07:00
parent e5f2b788fe
commit 5a394c4376

View file

@ -416,7 +416,7 @@ def get_search_core():
original_params = request.args.to_dict()
original_params['limit'] = limit
if limit and len(photos) == limit:
if limit and len(photos) >= limit:
next_params = original_params.copy()
next_params['offset'] = offset + limit
next_params = helpers.dict_to_params(next_params)