From 199a4af658bfe1cb916091f5abf8377184ba2edb Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 9 Sep 2020 13:15:21 -0700 Subject: [PATCH] Remove unnecessary intermediate variable view. --- frontends/etiquette_flask/backend/endpoints/photo_endpoints.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py b/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py index d0f9131..20827a7 100644 --- a/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py +++ b/frontends/etiquette_flask/backend/endpoints/photo_endpoints.py @@ -422,8 +422,7 @@ def get_search_core(): else: prev_page_url = None - view = request.args.get('view', 'grid') - search_kwargs['view'] = view + search_kwargs['view'] = request.args.get('view', 'grid') final_results = { 'next_page_url': next_page_url,