From e7d3a652a77b65c075808c0f3977a3d00a4534d1 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 4 Nov 2018 18:38:32 -0800 Subject: [PATCH] Change largest limit option to 200. Accidentally commited the number 250 on search.html earlier. Oops. Anyway I was finding 100 too limiting sometimes. I will think about making this configurable eventually. --- .../etiquette_flask/endpoints/photo_endpoints.py | 2 +- frontends/etiquette_flask/templates/search.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py b/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py index 62ff5a7..34b5824 100644 --- a/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py +++ b/frontends/etiquette_flask/etiquette_flask/endpoints/photo_endpoints.py @@ -308,7 +308,7 @@ def get_search_core(): if limit is None: limit = 50 else: - limit = min(limit, 100) + limit = min(limit, 200) offset = request.args.get('offset') diff --git a/frontends/etiquette_flask/templates/search.html b/frontends/etiquette_flask/templates/search.html index 2d841f1..f3ad478 100644 --- a/frontends/etiquette_flask/templates/search.html +++ b/frontends/etiquette_flask/templates/search.html @@ -262,7 +262,7 @@ name="author" placeholder="Author">